Borderou de evaluare (job #2824135)

Utilizator Darius1414Dobre Darius Adrian Darius1414 Data 31 decembrie 2021 04:33:54
Problema Mit Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:37: error: redefinition of 'int j' 5 | int v[nmax],sp[320],n,t,j,sq,p,st,i,j; | ^ main.cpp:5:25: note: 'int j' previously declared here 5 | int v[nmax],sp[320],n,t,j,sq,p,st,i,j; | ^ main.cpp: In function 'int main()': main.cpp:15:48: error: expected ';' before '}' token 15 | sp[(i-1)/sq+1]=max(sp[(i-1)/sq+1],v[i]) | ^ | ; 16 | } | ~ main.cpp:19:12: error: 'c' was not declared in this scope 19 | f>>c>>a>>b; | ^ main.cpp:19:15: error: 'a' was not declared in this scope 19 | f>>c>>a>>b; | ^ main.cpp:19:18: error: 'b' was not declared in this scope 19 | f>>c>>a>>b; | ^ main.cpp:26:16: error: 'x' was not declared in this scope 26 | f>>x; | ^ Non zero exit status: 1

Ceva nu functioneaza?