Borderou de evaluare (job #2543687)

Utilizator ciubotariu_miMirela ciubotariu_mi Data 11 februarie 2020 13:42:46
Problema Scara 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:9:12: error: 'n' was not declared in this scope for(i=1;i<=n;i++) cin>>a[i]; // inaltimile scarilor; ^ main.cpp:10:4: error: 'n' was not declared in this scope if(n%2==1) h=float(h+a[i])/i+p; ^ main.cpp:10:12: error: 'h' was not declared in this scope if(n%2==1) h=float(h+a[i])/i+p; ^ main.cpp:11:4: error: 'n' was not declared in this scope if(n%2==0) h=h+a[i]; ^ main.cpp:11:12: error: 'h' was not declared in this scope if(n%2==0) h=h+a[i]; ^ main.cpp:7:16: warning: unused variable 'j' [-Wunused-variable] {int H,N,M,p,i,j,a[100]; ^ Non zero exit status: 1

Ceva nu functioneaza?