Borderou de evaluare (job #583121)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Munți (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 feb. 2021 11:21:34 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:10: error: 'i' was not declared in this scope
13 | for (i=0;i<n;i++) {
| ^
main.cpp:15:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
15 | if (prec=0&&x!=0) {
| ~~~~^~~~~~~~
main.cpp:8:13: warning: unused variable 'imax' [-Wunused-variable]
8 | int n,x,imax,amax,a,prec,nrm;
| ^~~~
main.cpp:8:18: warning: unused variable 'amax' [-Wunused-variable]
8 | int n,x,imax,amax,a,prec,nrm;
| ^~~~
main.cpp:8:23: warning: unused variable 'a' [-Wunused-variable]
8 | int n,x,imax,amax,a,prec,nrm;
| ^