Borderou de evaluare (job #2014844)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 24 august 2017 15:18:15
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:59: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:60: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:63:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &n); ^ user.cpp:67:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:76:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &m); ^ user.cpp:78:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ /tmp/cc2sZYLV.o: In function `main': user.cpp:(.text.startup+0xbf): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms492kbOK10
24ms2072kbOK10
324ms9824kbOK10
4148ms61796kbOK10
5Depăşit120892kbTime limit exceeded.0
6Depăşit117592kbTime limit exceeded.0
7Depăşit119972kbTime limit exceeded.0
8Depăşit118124kbTime limit exceeded.0
9Depăşit119836kbTime limit exceeded.0
10Depăşit117992kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?