Borderou de evaluare (job #1653080)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 15 martie 2016 18:35:59
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:31:34: 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:32:36: 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:40:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); N = n; ^ user.cpp:44:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:85:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:88:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ /tmp/ccWnTl4Q.o: In function `main': user.cpp:(.text.startup+0x12f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms468kbOK10
20ms496kbOK10
38ms556kbOK10
460ms860kbOK10
5Depăşit1672kbTime limit exceeded.0
6Depăşit1684kbTime limit exceeded.0
7Depăşit4308kbTime limit exceeded.0
8Depăşit5428kbTime limit exceeded.0
9Depăşit4508kbTime limit exceeded.0
10Depăşit4904kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?