Borderou de evaluare (job #2014870)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 24 august 2017 16:04:57
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:56:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.in", "r", stdin); ^ user.cpp:57:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.out", "w", stdout); ^ user.cpp:60:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &n); ^ user.cpp:64:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:73:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &m); ^ user.cpp:75:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ /tmp/cchAzsia.o: In function `main': user.cpp:(.text.startup+0xb4): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms388kbOK10
20ms1244kbOK10
316ms5368kbOK10
496ms33092kbOK10
5Depăşit121028kbTime limit exceeded.0
6Depăşit122484kbTime limit exceeded.0
7Depăşit126972kbTime limit exceeded.0
8Depăşit122744kbTime limit exceeded.0
9Depăşit123008kbTime limit exceeded.0
10Depăşit121032kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?