Borderou de evaluare (job #1153319)

Utilizator osiaccrCristian Osiac osiaccr Data 25 martie 2014 13:20:13
Problema Tir Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:10:1: error: ‘Max’ was not declared in this scope Max=-1; ^ user.cpp:11:5: error: ‘i’ was not declared in this scope for(i=1;i<=p;i++){ ^ user.cpp:15:5: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:16:9: error: ‘j’ was not declared in this scope for(j=1;j<=n-m;j++){ ^ user.cpp:19:23: error: invalid operands of types ‘int’ and ‘int [302]’ to binary ‘operator-’ x[p]=x[p]-x+1; ^ user.cpp:22:29: error: ‘s’ was not declared in this scope if(i<=j)s+=i; ^ user.cpp:24:21: error: ‘s’ was not declared in this scope s+=j; ^ user.cpp:28:33: error: ‘s’ was not declared in this scope if(i<=j)s+=i ^ user.cpp:29:25: error: expected ‘;’ before ‘else’ else ^ user.cpp:33:13: error: expected primary-expression before ‘}’ token } ^ user.cpp:33:13: error: expected ‘;’ before ‘}’ token user.cpp:38:1: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?