Borderou de evaluare (job #1702912)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 15 mai 2016 19:52:01
Problema Timbre Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:45:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d%d",&N,&M,&K); ^ user.cpp:45:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:45:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:47:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&v[i].end,&v[i].val); ^ user.cpp:47:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:42:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("timbre.in","r",stdin); ^ user.cpp:43:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("timbre.out","w",stdout); ^ user.cpp:45:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&N,&M,&K); ^ user.cpp:47:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&v[i].end,&v[i].val); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbBun asa...10
20ms280kbBun asa...10
30ms292kbBun asa...10
40ms308kbBah, i-ai mancat inghetata fetei!0
50ms296kbBun asa...10
60ms336kbBun asa...10
70ms372kbBun asa...10
84ms408kbBah, i-ai mancat inghetata fetei!0
94ms424kbBun asa...10
100ms272kbBun asa...10
Punctaj total80

Ceva nu functioneaza?