Borderou de evaluare (job #1559117)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 30 decembrie 2015 10:11:33
Problema Scenariu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d %d",&N,&K); ^ user.cpp:9:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:11:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] {fscanf(f,"%d",&a);S+=a;} ^ user.cpp:30:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d",C[S-1]); ^ user.cpp:32:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d",tmp[S-1]); ^ user.cpp:9:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&N,&K); ^ user.cpp:11:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] {fscanf(f,"%d",&a);S+=a;} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK10
20ms280kbOK10
30ms284kbOK10
40ms280kbOK10
512ms300kbOK10
616ms296kbOK10
716ms300kbOK10
8Depăşit348kbTime limit exceeded.0
9Depăşit348kbTime limit exceeded.0
10Depăşit348kbTime limit exceeded.0
Punctaj total70

Ceva nu functioneaza?