Compile Error
/in/ex2.c: In function 'main': /in/ex2.c:13:20: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Werror=int-conversion] if (strcmp(string2,string)==0){ ^~~~~~~ In file included from /in/ex2.c:2:0: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'char' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ cc1: all warnings being treated as errors
Information
- Submit By
- Type
- Submission
- Homework
- Homework 5
- Language
- C
- Submit At
- 2022-07-02 21:13:15
- Judged At
- 2022-07-05 08:56:09
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes