Borderou de evaluare (job #1701130)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 12 mai 2016 10:58:00
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:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d%d%d",&N,&M,&K); ^ user.cpp:45:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:45:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:46:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=M;i++) ^ user.cpp:52:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (p>P) ^ user.cpp:63:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d",S); ^ user.cpp:42:32: 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:34: 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:26: 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:36: 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
30ms288kbBun asa...10
40ms296kbBah, i-ai mancat inghetata fetei!0
50ms284kbBun asa...10
60ms312kbBun asa...10
70ms328kbBun asa...10
84ms344kbBah, i-ai mancat inghetata fetei!0
94ms356kbBun asa...10
100ms280kbBun asa...10
Punctaj total80

Ceva nu functioneaza?