Borderou de evaluare (job #1653087)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 15 martie 2016 18:38:44
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

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/ccypRbeT.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
20ms500kbOK10
34ms616kbOK10
424ms1148kbOK10
5116ms3064kbOK10
6120ms2472kbOK10
7Depăşit5300kbTime limit exceeded.0
8Depăşit5168kbTime limit exceeded.0
9Depăşit4380kbTime limit exceeded.0
10Depăşit5032kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?