Borderou de evaluare (job #2019525)

Utilizator EuAlexOtaku Hikikomori EuAlex Data 7 septembrie 2017 23:30:02
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:45: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:46: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:50:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &a); ^ user.cpp:52:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str); ^ user.cpp:58:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &b); ^ user.cpp:60:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str); ^ /tmp/ccZ6Td7x.o: In function `main': user.cpp:(.text.startup+0x78): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms308kbOK10
20ms740kbOK10
34ms2540kbOK10
440ms14816kbOK10
5196ms71008kbOK10
6Depăşit88716kbTime limit exceeded.0
7Depăşit107812kbTime limit exceeded.0
8Depăşit112956kbTime limit exceeded.0
9Depăşit107152kbTime limit exceeded.0
10Depăşit109392kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?