Record Detail

Compile Error

/in/ex1.c: In function 'main':
/in/ex1.c:5:10: error: 'find' undeclared (first use in this function); did you mean 'int'?
          find'.' in *argv[i] and let argv[i] points to the '.';
          ^~~~
          int
/in/ex1.c:5:10: note: each undeclared identifier is reported only once for each function it appears in
/in/ex1.c:5:14: error: expected ';' before '.'
          find'.' in *argv[i] and let argv[i] points to the '.';
              ^~~
/in/ex1.c:10:24: error: comparison between pointer and integer [-Werror]
             if (dic[j] != *argv[i]) {
                        ^~
/in/ex1.c:3:16: error: unused variable 'cur' [-Werror=unused-variable]
      int pre=0,cur=0;
                ^~~
/in/ex1.c:3:10: error: unused variable 'pre' [-Werror=unused-variable]
      int pre=0,cur=0;
          ^~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Problem
Mid2 Ex1
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:44:30
Judged At
2022-07-08 16:04:34
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes