Pagini recente » Borderou de evaluare (job #2197916) | Borderou de evaluare (job #569717) | Borderou de evaluare (job #285503) | Borderou de evaluare (job #890411) | Borderou de evaluare (job #1790069)
Borderou de evaluare (job #1790069)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("interesant.in", "r", stdin);
^
user.cpp:22:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("interesant.out", "w", stdout);
^
user.cpp:24:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &type, &n);
^
user.cpp:31:27: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s[i] + 1);
^
user.cpp:65:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s[i] + 1);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46,
from user.cpp:1:
In function ‘char* gets(char*)’,
inlined from ‘int main()’ at user.cpp:31:27:
/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);
^
In function ‘char* gets(char*)’,
inlined from ‘int main()’ at user.cpp:65:23:
/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/ccmxZ08p.o: In function `main':
user.cpp:(.text.startup+0x9f): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 4ms | 1256kb | OK. | 5 | 20 |
2 | 4ms | 1432kb | OK. | 5 |
3 | 0ms | 600kb | OK. | 5 |
4 | 0ms | 1108kb | OK. | 5 |
5 | 0ms | 544kb | OK. | 3 | 3 |
6 | 124ms | 1276kb | Numar de siruri incorect. | 0 | 0 |
7 | 0ms | 500kb | OK. | 3 | 3 |
8 | 84ms | 968kb | OK. | 3 | 3 |
9 | 228ms | 1432kb | OK. | 4 | 4 |
10 | 188ms | 1424kb | Numar de siruri incorect. | 0 | 0 |
11 | 192ms | 1316kb | OK. | 4 | 4 |
12 | 224ms | 1372kb | Numar de siruri incorect. | 0 | 0 |
13 | 236ms | 1400kb | Numar de siruri incorect. | 0 | 0 |
14 | 212ms | 1440kb | Numar de siruri incorect. | 0 | 0 |
15 | 248ms | 1436kb | Numar de siruri incorect. | 0 | 0 |
16 | 324ms | 1428kb | Numar de siruri incorect. | 0 | 0 |
17 | 280ms | 1416kb | Numar de siruri incorect. | 0 | 0 |
18 | 248ms | 1432kb | Numar de siruri incorect. | 0 | 0 |
19 | 244ms | 1432kb | Numar de siruri incorect. | 0 | 0 |
20 | 260ms | 1440kb | Numar de siruri incorect. | 0 | 0 |
21 | 260ms | 1432kb | Numar de siruri incorect. | 0 | 0 |
22 | 228ms | 1436kb | Numar de siruri incorect. | 0 | 0 |
Punctaj total | 37 |