Pagini recente » Cod sursa (job #2558553) | Cod sursa (job #2441116) | Cod sursa (job #3187610) | Borderou de evaluare (job #781610) | Borderou de evaluare (job #1567103)
Borderou de evaluare (job #1567103)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:20:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("evo.in", "r", stdin);
^
user.cpp:21:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("evo.out", "w", stdout);
^
user.cpp:23:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d\n", &nr);
^
user.cpp:26:52: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (init[i] + 1), l[i] = strlen (init[i] + 1);
^
user.cpp:36:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d\n", &M);
^
user.cpp:39:41: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (sir + 1), N = strlen (sir + 1);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:1:
In function ‘char* gets(char*)’,
inlined from ‘int main()’ at user.cpp:26:52:
/usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default]
return __gets_warn (__str);
^
/tmp/cc565v0S.o: In function `main':
user.cpp:(.text.startup+0x7f): warning: the `gets' function is dangerous and should not be used.
user.cpp:(.text.startup+0x166): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 292kb | OK | 5 | 5 |
2 | 0ms | 296kb | OK | 5 | 5 |
3 | 0ms | 268kb | OK | 5 | 5 |
4 | 16ms | 368kb | Incorect | 0 | 0 |
5 | 16ms | 372kb | Incorect | 0 | 0 |
6 | 88ms | 468kb | Incorect | 0 | 0 |
7 | 76ms | 476kb | Incorect | 0 | 0 |
8 | 124ms | 612kb | Incorect | 0 | 0 |
9 | 400ms | 616kb | Incorect | 0 | 0 |
10 | 204ms | 616kb | Incorect | 0 | 0 |
11 | 108ms | 720kb | Incorect | 0 | 0 |
12 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
13 | 0ms | 256kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
14 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 |
15 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 |
16 | 0ms | 252kb | Killed by signal 11(SIGSEGV). | 0 |
17 | 0ms | 256kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
18 | 0ms | 256kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
19 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
20 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
Punctaj total | 15 |