Borderou de evaluare (job #1285231)

Utilizator mvcl3Marian Iacob mvcl3 Data 7 decembrie 2014 10:30:20
Problema Perioada01 Status done
Runda Algoritmiada 2015 - Runda 1, Seniori Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(in, "%ld%ld", &N, &P); ^ user.cpp:17:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:19:34: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(in, "%ld%ld", &a1, &a2); ^ user.cpp:19:34: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:29:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(in, "%ld", &a1); ^ user.cpp:38:28: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(out, "%ld\n", r); ^ user.cpp:17:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%ld%ld", &N, &P); ^ user.cpp:19:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%ld%ld", &a1, &a2); ^ user.cpp:29:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%ld", &a1); ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms236kbIncorect00
20ms236kbOK10
30ms236kbOK100
40ms236kbIncorect0
50ms236kbIncorect00
60ms232kbOK10
70ms240kbIncorect00
80ms236kbIncorect0
90ms236kbIncorect0
10116ms232kbOK10
Punctaj total0

Ceva nu functioneaza?