Borderou de evaluare (job #1440975)

Utilizator 3plusplusSapientia Madarasz Kantor Gyeresi 3plusplus Data 23 mai 2015 14:51:26
Problema Distractie Status done
Runda ACM-ICPC Faza Nationala 2015-2016 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:54:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f, "%d", &p); fscanf(f, "%d", &q); ^ user.cpp:54:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f, "%d", &p); fscanf(f, "%d", &q); ^ user.cpp:59:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f, "%d", &t[i][j]); ^ user.cpp:60:4: error: ‘y’ was not declared in this scope y[i][j] = 32000; ^ user.cpp:54:21: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &p); fscanf(f, "%d", &q); ^ user.cpp:54:42: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &p); fscanf(f, "%d", &q); ^ user.cpp:59:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &t[i][j]); ^

Ceva nu functioneaza?