Borderou de evaluare (job #1346102)

Utilizator IonSebastianIon Sebastian IonSebastian Data 18 februarie 2015 00:42:11
Problema Search 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:41:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(in, "%d%d\n", &n, &m); ^ user.cpp:43:5: error: expected initializer before ‘int’ int j; ^ user.cpp:45:9: error: ‘i’ was not declared in this scope for(i = 0; i < n; i++) ^ user.cpp:47:9: error: ‘j’ was not declared in this scope for(j = 0; j < m; j++) ^ user.cpp:49:9: error: ‘i’ was not declared in this scope for(i = 0; i < n; i++) ^ user.cpp:59:13: error: ‘j’ was not declared in this scope for(j = 1; j < m; j++) ^ user.cpp:71:9: error: ‘j’ was not declared in this scope for(j = 0; j < m; j++) ^ user.cpp:44:10: warning: unused variable ‘c’ [-Wunused-variable] char c; ^ user.cpp:41:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d%d\n", &n, &m); ^

Ceva nu functioneaza?