Borderou de evaluare (job #707876)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Intervale | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 16 mar. 2023 13:06:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:15: error: 'MAxk' was not declared in this scope; did you mean 'MAXk'?
9 | int sp[MAX+1][MAxk+1];
| ^~~~
| MAXk
main.cpp: In function 'int main()':
main.cpp:23:9: error: 'sp' was not declared in this scope
23 | sp[d][k-1]=sp[d-1][k-1];
| ^~
main.cpp:24:8: error: 'sp' was not declared in this scope
24 | sp[d][ciur[d]-1]++;
| ^~
main.cpp:38:14: error: 'sp' was not declared in this scope
38 | out<<sp[b][k-1]-sp[a-1][k-1]<<endl;
| ^~
main.cpp:12:19: warning: unused variable 'cnt' [-Wunused-variable]
12 | int a,b,k,i,d,cnt;
| ^~~