Borderou de evaluare (job #1809748)

Utilizator caprariuapCaprariu Alin-Paul caprariuap Data 19 noiembrie 2016 11:12:40
Problema Secventa 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d%d",&n,&k); ^ user.cpp:14:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:17:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d",&a); ^ user.cpp:34:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout,"%d %d %d\n",st,sf,maxim); ^ user.cpp:34:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long long int’ [-Wformat=] user.cpp:34:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long long int’ [-Wformat=] user.cpp:36:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout,"1 1 %d\n",a); ^ user.cpp:14:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d",&n,&k); ^ user.cpp:17:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&a); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbWrong answer!0
20ms272kbWrong answer!0
30ms276kbWrong answer!0
40ms280kbWrong answer!0
50ms364kbWrong answer!0
64ms472kbWrong answer!0
74ms588kbWrong answer!0
88ms704kbWrong answer!0
912ms848kbWrong answer!0
1016ms1312kbWrong answer!0
Punctaj total0

Ceva nu functioneaza?