Borderou de evaluare (job #645733)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Popas (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 31 mar. 2022 19:24:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:32:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
32 | if(v[j]-v[j-1] > maxdist)
| ^~
main.cpp:35:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
35 | sum += v[j]-v[j-1];
| ^~~
main.cpp:67:5: error: expected ';' before '}' token
67 | ok=1
| ^
| ;
68 | }
| ~
main.cpp:13:13: warning: unused variable 'r' [-Wunused-variable]
13 | int a,n,r,nr,i,rau,j,maxdist=0,sum=0,rasp1,rasp2,t,u,impmin=210000,imp,ok=0;
| ^
main.cpp:13:15: warning: unused variable 'nr' [-Wunused-variable]
13 | int a,n,r,nr,i,rau,j,maxdist=0,sum=0,rasp1,rasp2,t,u,impmin=210000,imp,ok=0;
| ^~
main.cpp:13:20: warning: unused variable 'rau' [-Wunused-variable]
13 | int a,n,r,nr,i,rau,j,maxdist=0,sum=0,rasp1,rasp2,t,u,impmin=210000,imp,ok=0;
| ^~~