Borderou de evaluare (job #710283)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Trei cifre consecutive | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 22 mar. 2023 20:55:08 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:14:20: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
14 | if(!(w=(a[j]&1)+(a[j-1]&1)+(a[j-2]&1)||w==3)
| ^
main.cpp:14:61: error: expected ';' before 'i'
14 | if(!(w=(a[j]&1)+(a[j-1]&1)+(a[j-2]&1)||w==3)
| ^
| ;
15 | i+=e,o=0;
| ~
main.cpp:14:20: warning: value computed is not used [-Wunused-value]
14 | if(!(w=(a[j]&1)+(a[j-1]&1)+(a[j-2]&1)||w==3)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:16:9: error: expected primary-expression before '}' token
16 | }
| ^
main.cpp:15:29: error: expected ')' before '}' token
15 | i+=e,o=0;
| ^
| )
16 | }
| ~
main.cpp:14:19: note: to match this '('
14 | if(!(w=(a[j]&1)+(a[j-1]&1)+(a[j-2]&1)||w==3)
| ^
main.cpp:16:9: error: expected primary-expression before '}' token
16 | }
| ^