Borderou de evaluare (job #1701316)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 12 mai 2016 19:11:34
Problema Timbre Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d%d%d",&N,&K,&M); ^ user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:20:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=N;i++) ^ user.cpp:23:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=N&&P<N;i++) ^ user.cpp:25:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(v[i].x>P) ^ user.cpp:29:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(v[i].y==cost&&v[i].x<=P+K&&i<=N) ^ user.cpp:29:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(v[i].y==cost&&v[i].x<=P+K&&i<=N) ^ user.cpp:39:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d",S); ^ user.cpp:16:36: 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:17:38: 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:19:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&N,&K,&M); ^ user.cpp:21:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&v[i].x,&v[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbBah, i-ai mancat inghetata fetei!0
20ms264kbBah, i-ai mancat inghetata fetei!0
30ms264kbBah, i-ai mancat inghetata fetei!0
40ms256kbBah, i-ai mancat inghetata fetei!0
50ms260kbBah, i-ai mancat inghetata fetei!0
60ms264kbBah, i-ai mancat inghetata fetei!0
70ms260kbBah, i-ai mancat inghetata fetei!0
80ms264kbBah, i-ai mancat inghetata fetei!0
90ms264kbBah, i-ai mancat inghetata fetei!0
100ms252kbBun asa...10
Punctaj total10

Ceva nu functioneaza?