Borderou de evaluare (job #1701164)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 12 mai 2016 11:44:45
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:62: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:62:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:62:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:63:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=M;i++) ^ user.cpp:70:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(p<P+K) ^ user.cpp:72:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (p>P) ^ user.cpp:83:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d",S); ^ user.cpp:59: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:60: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:62: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:64: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
20ms276kbBun asa...10
30ms292kbBun asa...10
40ms292kbBah, i-ai mancat inghetata fetei!0
50ms292kbBun asa...10
60ms316kbBun asa...10
70ms324kbBun asa...10
84ms340kbBah, i-ai mancat inghetata fetei!0
94ms352kbBun asa...10
100ms276kbBun asa...10
Punctaj total80

Ceva nu functioneaza?