Borderou de evaluare (job #951927)

Utilizator irinaneaguIrina Neagu irinaneagu Data 22 mai 2013 12:29:13
Problema ZParcurgere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int numar(int, int)’: user.cpp:5:5: error: ‘r’ was not declared in this scope r+=mat[lin%2][col%2]*} ^ user.cpp:5:8: error: ‘mat’ was not declared in this scope r+=mat[lin%2][col%2]*} ^ user.cpp:5:26: error: expected primary-expression before ‘}’ token r+=mat[lin%2][col%2]*} ^ user.cpp:5:26: error: expected ‘;’ before ‘}’ token user.cpp:5:26: warning: no return statement in function returning non-void [-Wreturn-type] user.cpp: In function ‘int main()’: user.cpp:12:9: error: ‘i’ was not declared in this scope for(i=1;i<=k;i++){ ^ user.cpp:9:15: warning: unused variable ‘mat’ [-Wunused-variable] const int mat[2][2]={{0,1},{2,3}}; ^

Ceva nu functioneaza?