Borderou de evaluare (job #1449283)

Utilizator SilviuIIon Silviu SilviuI Data 9 iunie 2015 11:17: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:41:28: 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:42:30: 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:43:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n1); ^ user.cpp:45:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); n=strlen(s+1); ^ user.cpp:60:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n2); ^ user.cpp:62:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ss=s; nr=0; ^ /tmp/ccTx5VIt.o: In function `main': user.cpp:(.text.startup+0x8c): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1320kbOK10
28ms3352kbOK10
324ms4648kbOK10
4168ms17404kbOK10
5Depăşit25888kbTime limit exceeded.0
6Depăşit26008kbTime limit exceeded.0
7Depăşit36712kbTime limit exceeded.0
8Depăşit36044kbTime limit exceeded.0
9Depăşit35644kbTime limit exceeded.0
10Depăşit35528kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?