Borderou de evaluare (job #1265392)

Utilizator binicBinica Nicolae binic Data 17 noiembrie 2014 11:26:11
Problema String Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("string.in","r",stdin); ^ user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("string.out","w",stdout); ^ user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:12:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ /tmp/cca9QEjZ.o: In function `main': user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK!10
20ms320kbKilled by signal 11(SIGSEGV).0
30ms300kbKilled by signal 11(SIGSEGV).0
40ms244kbKilled by signal 11(SIGSEGV).0
50ms712kbKilled by signal 11(SIGSEGV).0
60ms420kbKilled by signal 11(SIGSEGV).0
70ms568kbKilled by signal 11(SIGSEGV).0
80ms712kbKilled by signal 11(SIGSEGV).0
90ms352kbKilled by signal 11(SIGSEGV).0
100ms476kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?