Borderou de evaluare (job #627281)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Ecuatie2 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | cex_gj10 | Status | evaluat |
Dată | 23 ian. 2022 21:19:55 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:20:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if (strchr(s1, '+') != '\0')
| ~~~~~~~~~~~~~~~~^~~~~~~
main.cpp:25:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
25 | else if (strchr(s1, '-') != '\0')
| ~~~~~~~~~~~~~~~~^~~~~~~
main.cpp:30:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
30 | else if (strchr(s1, '*') != '\0')
| ~~~~~~~~~~~~~~~~^~~~~~~
main.cpp:45:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
45 | if (strchr(s1, '+') != '\0')
| ~~~~~~~~~~~~~~~~^~~~~~~
main.cpp:50:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
50 | else if (strchr(s1, '-') != '\0')
| ~~~~~~~~~~~~~~~~^~~~~~~
main.cpp:55:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
55 | else if (strchr(s1, '*') != '\0')
| ~~~~~~~~~~~~~~~~^~~~~~~