Borderou de evaluare (job #600515)

Utilizator ProtomanAndrei Purice Protoman Data 2 iulie 2011 00:10:10
Problema Risipa Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:36:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("risipa.in", "r", stdin); ^ user.cpp:37:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("risipa.out", "w", stdout); ^ user.cpp:39:31: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(buffIn + 1, MAX, stdin); ^ user.cpp:41:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &a, &b); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/c++/4.8/random:39, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:1: In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:39:31: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK10
20ms372kbKilled by signal 11(SIGSEGV).0
30ms368kbKilled by signal 11(SIGSEGV).0
40ms368kbKilled by signal 11(SIGSEGV).0
50ms368kbKilled by signal 11(SIGSEGV).0
60ms272kbIncorect0
70ms372kbKilled by signal 11(SIGSEGV).0
80ms376kbKilled by signal 11(SIGSEGV).0
90ms372kbKilled by signal 11(SIGSEGV).0
100ms372kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?