Borderou de evaluare (job #957669)

Utilizator ENiGMAAxinte Sebastian ENiGMA Data 5 iunie 2013 18:42:49
Problema Jocul Flip 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:6:26: error: expected ‘]’ before ‘,’ token int N, M, i, j, tabla[16,16], S=0, aux[2], c; ^ user.cpp:6:27: error: expected unqualified-id before numeric constant int N, M, i, j, tabla[16,16], S=0, aux[2], c; ^ user.cpp:12:11: error: ‘tabla’ was not declared in this scope input>>tabla[N,M];}} ^ user.cpp:12:19: warning: left operand of comma operator has no effect [-Wunused-value] input>>tabla[N,M];}} ^ user.cpp:15:3: error: ‘aux’ was not declared in this scope aux[1]=0; ^ user.cpp:17:7: error: ‘c’ was not declared in this scope for(c=1;c<=2;c++){ ^ user.cpp:19:28: error: ‘tabla’ was not declared in this scope if(c==2){aux[c]=aux[c]+tabla[N,M]*-1}else{aux[c]=aux[c]+tabla[N,M];}}} ^ user.cpp:19:36: warning: left operand of comma operator has no effect [-Wunused-value] if(c==2){aux[c]=aux[c]+tabla[N,M]*-1}else{aux[c]=aux[c]+tabla[N,M];}}} ^ user.cpp:19:41: error: expected ‘;’ before ‘}’ token if(c==2){aux[c]=aux[c]+tabla[N,M]*-1}else{aux[c]=aux[c]+tabla[N,M];}}} ^ user.cpp:19:61: error: ‘tabla’ was not declared in this scope if(c==2){aux[c]=aux[c]+tabla[N,M]*-1}else{aux[c]=aux[c]+tabla[N,M];}}} ^ user.cpp:19:69: warning: left operand of comma operator has no effect [-Wunused-value] if(c==2){aux[c]=aux[c]+tabla[N,M]*-1}else{aux[c]=aux[c]+tabla[N,M];}}} ^ user.cpp:20:21: error: ‘S’ was not declared in this scope if(aux[1]>aux[2]){S=S+aux[1];}else{S=S+aux[2];}} ^ user.cpp:20:38: error: ‘S’ was not declared in this scope if(aux[1]>aux[2]){S=S+aux[1];}else{S=S+aux[2];}} ^ user.cpp:21:13: error: ‘S’ was not declared in this scope output<<S; ^

Ceva nu functioneaza?