Borderou de evaluare (job #627864)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Ecuatie2 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | cex_gj10 | Status | evaluat |
Dată | 26 ian. 2022 01:02:10 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:22:16: warning: comparison with string literal results in unspecified behavior [-Waddress]
22 | if(c[2]=="+")
| ~~~~^~~~~
main.cpp:22:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
main.cpp:26:21: warning: comparison with string literal results in unspecified behavior [-Waddress]
26 | else if(c[2]=="-")
| ~~~~^~~~~
main.cpp:26:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
main.cpp:30:21: warning: comparison with string literal results in unspecified behavior [-Waddress]
30 | else if(c[2]=="*")
| ~~~~^~~~~
main.cpp:30:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
main.cpp:41:16: warning: comparison with string literal results in unspecified behavior [-Waddress]
41 | if(c[2]=="+")
| ~~~~^~~~~
main.cpp:41:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
main.cpp:45:21: warning: comparison with string literal results in unspecified behavior [-Waddress]
45 | else if(c[2]=="-")
| ~~~~^~~~~
main.cpp:45:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
main.cpp:49:21: warning: comparison with string literal results in unspecified behavior [-Waddress]
49 | else if(c[2]=="*")
| ~~~~^~~~~
main.cpp:49:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]