Pagini recente » Borderou de evaluare (job #1382131) | Borderou de evaluare (job #2743431) | Borderou de evaluare (job #280208) | Borderou de evaluare (job #2896384) | Borderou de evaluare (job #1744360)
Borderou de evaluare (job #1744360)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:140:17: warning: variable ‘nod’ set but not used [-Wunused-but-set-variable]
int best = -1, nod=0;
^
user.cpp: In function ‘void citire()’:
user.cpp:16:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:18:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s[i]+1);
^
user.cpp: In function ‘int main()’:
user.cpp:134:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("adn.in", "r", stdin);
^
user.cpp:135:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("adn.out", "w", stdout);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from /usr/include/c++/4.8/ext/string_conversions.h:43,
from /usr/include/c++/4.8/bits/basic_string.h:2815,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
In function ‘char* gets(char*)’,
inlined from ‘void citire()’ at user.cpp:18:15:
/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/ccloQO9P.o: In function `citire()':
user.cpp:(.text+0x3d): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 24ms | 20936kb | Wrong asnwer | 0 |
2 | 24ms | 20992kb | Wrong asnwer | 0 |
3 | 24ms | 20952kb | Wrong asnwer | 0 |
4 | 24ms | 21012kb | Wrong asnwer | 0 |
5 | Depăşit | 21096kb | Time limit exceeded. | 0 |
6 | 520ms | 21276kb | Wrong asnwer | 0 |
7 | Depăşit | 21896kb | Time limit exceeded. | 0 |
8 | Depăşit | 26392kb | Time limit exceeded. | 0 |
9 | Depăşit | 22136kb | Time limit exceeded. | 0 |
10 | Depăşit | 27576kb | Time limit exceeded. | 0 |
Punctaj total | 0 |