Borderou de evaluare (job #696089)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Latin1 (baraj gimnaziu) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 16 feb. 2023 16:16:47 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:27:25: warning: variable 's' set but not used [-Wunused-but-set-variable]
27 | int s;
| ^
main.cpp:30:38: error: 's' was not declared in this scope
30 | if ((i*(i*(i+1))/2)==s){
| ^
main.cpp:32:34: error: 'f' was not declared in this scope
32 | m[contor][2]=f;
| ^
main.cpp:12:23: warning: unused variable 'l1' [-Wunused-variable]
12 | int n,contor=1,op,l1,l2,c1,c2;
| ^~
main.cpp:12:26: warning: unused variable 'l2' [-Wunused-variable]
12 | int n,contor=1,op,l1,l2,c1,c2;
| ^~
main.cpp:12:29: warning: unused variable 'c1' [-Wunused-variable]
12 | int n,contor=1,op,l1,l2,c1,c2;
| ^~
main.cpp:12:32: warning: unused variable 'c2' [-Wunused-variable]
12 | int n,contor=1,op,l1,l2,c1,c2;
| ^~
main.cpp: At global scope:
main.cpp:39:5: error: expected unqualified-id before 'if'
39 | if (contor==1){
| ^~
main.cpp:41:7: error: expected unqualified-id before 'else'
41 | } else {
| ^~~~
main.cpp:50:5: error: expected unqualified-id before 'return'
50 | return 0;
| ^~~~~~
main.cpp:51:1: error: expected declaration before '}' token
51 | }
| ^