Record Detail

Compile Error

/in/inDictionary.c: In function 'main':
/in/inDictionary.c:6:5: error: unknown type name 'matrix'
     matrix T;
     ^~~~~~
/in/inDictionary.c:7:13: error: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Werror=format=]
     scanf("%s",str);
            ~^
/in/inDictionary.c:9:18: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for(i = 0; i < sizeof(T); i++){
                  ^
/in/inDictionary.c:10:20: error: called object 'T' is not a function or function pointer
         if (str == T(i)){
                    ^
/in/inDictionary.c:6:12: note: declared here
     matrix T;
            ^
/in/inDictionary.c:13:20: error: 'F' undeclared (first use in this function)
             return F;
                    ^
/in/inDictionary.c:13:20: note: each undeclared identifier is reported only once for each function it appears in
/in/inDictionary.c:14:13: error: called object 'T' is not a function or function pointer
             T(i+1) = str;
             ^
/in/inDictionary.c:6:12: note: declared here
     matrix T;
            ^
/in/inDictionary.c:8:11: error: unused variable 'j' [-Werror=unused-variable]
     int i,j;
           ^
/in/inDictionary.c: At top level:
/in/inDictionary.c:24:21: error: expected ';', ',' or ')' before '&' token
 void initial(matrix &T, int m, int n){
                     ^
/in/inDictionary.c:24:23: error: stray '\357' in program
 void initial(matrix &T, int m, int n){
                       ^
/in/inDictionary.c:24:24: error: stray '\274' in program
 void initial(matrix &T, int m, int n){
                        ^
/in/inDictionary.c:24:25: error: stray '\214' in program
 void initial(matrix &T, int m, int n){
                         ^
/in/inDictionary.c:34:22: error: expected ';', ',' or ')' before '&' token
 void initZero(matrix &T, int m, int n){
                      ^
/in/inDictionary.c:44:18: error: expected ';', ',' or ')' before '&' token
 void free(matrix &T){
                  ^
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:42:12
Judged At
2022-07-08 16:06:05
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes