Borderou de evaluare (job #1351761)

Utilizator UCV_Savoiu_Sirbu_DuicaEchipa X UCV_Savoiu_Sirbu_Duica Data 21 februarie 2015 11:31:17
Problema Por Costel si Invazia Extraterestra Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f, "%ld%ld\n", &n, &m); ^ user.cpp:12:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:22:39: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f, "%ld%ld%ld\n", &x, &y, &z); ^ user.cpp:22:39: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:22:39: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:33:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f, "%ld\n", &r); ^ user.cpp:35:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g, "%ld\n", k[r]); ^ user.cpp:12:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%ld%ld\n", &n, &m); ^ user.cpp:17:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%c", &c); ^ user.cpp:18:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%c", &c1); ^ user.cpp:22:40: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%ld%ld%ld\n", &x, &y, &z); ^ user.cpp:33:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%ld\n", &r); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms304kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?