Record Detail

Compile Error

/in/ex4.c:39:11: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
        while((t=getchar())!=EOF&judge!=2){
                ~^~~~~~~~~
/in/ex4.c:41:20: error: incompatible integer to pointer conversion passing 'char' to parameter of type 'const char *'; take the address with & [-Werror,-Wint-conversion]
                        m1[i1][u1]=atoi(t);
                                        ^
                                        &
/usr/include/stdlib.h:361:26: note: passing argument to parameter '__nptr' here
__NTH (atoi (const char *__nptr))
                         ^
/in/ex4.c:58:11: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
        while((t=getchar())!=EOF){
                ~^~~~~~~~~
/in/ex4.c:60:20: error: incompatible integer to pointer conversion passing 'char' to parameter of type 'const char *'; take the address with & [-Werror,-Wint-conversion]
                        m2[i2][u2]=atoi(t);
                                        ^
                                        &
/usr/include/stdlib.h:361:26: note: passing argument to parameter '__nptr' here
__NTH (atoi (const char *__nptr))
                         ^
/in/ex4.c:20:7: error: unused variable 'toatl' [-Werror,-Wunused-variable]
        char toatl[300];
             ^
5 errors generated.

Information

Submit By
Type
Submission
Homework
Homework 6
Language
C (Clang, with memory check)
Submit At
2022-11-15 14:03:52
Judged At
2022-11-15 14:03:52
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes