Borderou de evaluare (job #611036)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tdrept (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 oct. 2021 13:46:21 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:21:9: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
21 | if(A[i].y==A[u].y
| ^
main.cpp:21:23: error: expected ';' before 'k'
21 | if(A[i].y==A[u].y
| ^
| ;
22 |
23 | k++;
| ~
main.cpp:21:15: warning: statement has no effect [-Wunused-value]
21 | if(A[i].y==A[u].y
| ~~~~~~^~~~~~~~
main.cpp:24:6: error: expected primary-expression before '}' token
24 | }
| ^
main.cpp:23:11: error: expected ')' before '}' token
23 | k++;
| ^
| )
24 | }
| ~
main.cpp:21:8: note: to match this '('
21 | if(A[i].y==A[u].y
| ^
main.cpp:24:6: error: expected primary-expression before '}' token
24 | }
| ^
main.cpp:16:6: warning: unused variable 'k' [-Wunused-variable]
16 | int k=0;
| ^
main.cpp: At global scope:
main.cpp:29:2: error: 'cout' does not name a type
29 | cout<<k<<endl;
| ^~~~
main.cpp:30:2: error: 'cout' does not name a type
30 | cout<<endl;
| ^~~~
main.cpp:31:2: error: expected declaration before '}' token
31 | }
| ^