Pagini recente » Borderou de evaluare (job #1858747) | Borderou de evaluare (job #2999618) | Borderou de evaluare (job #4018) | Borderou de evaluare (job #47706) | Borderou de evaluare (job #1755401)
Borderou de evaluare (job #1755401)
Raport evaluator
Compilare:
user.cpp: In function ‘void getSufPref()’:
user.cpp:24:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 2; i <= strlen(Pattern + 1); i++) {
^
user.cpp: In function ‘int matchMinimum()’:
user.cpp:35:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i <= strlen(Compressed[0] + 1); i++) {
^
user.cpp: In function ‘int matchMaximum()’:
user.cpp:52:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i <= strlen(Compressed[1] + 1); i++) {
^
user.cpp: In function ‘int main()’:
user.cpp:84:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i <= strlen(Words[0][1] + 1); i++) {
^
user.cpp:66:32: 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:67:34: 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:69:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &A);
^
user.cpp:71:26: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(Words[0][i] + 1);
^
user.cpp:76:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &B);
^
user.cpp:78:26: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(Words[1][i] + 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:71:26:
/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:78:26:
/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/cc588iwq.o: In function `main':
user.cpp:(.text.startup+0x87): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 472kb | OK | 10 |
2 | 0ms | 480kb | OK | 10 |
3 | 0ms | 488kb | OK | 10 |
4 | 4ms | 504kb | OK | 10 |
5 | 20ms | 544kb | OK | 10 |
6 | 20ms | 556kb | OK | 10 |
7 | 112ms | 576kb | OK | 10 |
8 | 128ms | 608kb | OK | 10 |
9 | 128ms | 636kb | OK | 10 |
10 | 136ms | 608kb | OK | 10 |
Punctaj total | 100 |