Pagini recente » Borderou de evaluare (job #214853) | Borderou de evaluare (job #1224419) | Borderou de evaluare (job #1420087) | Borderou de evaluare (job #674689) | Borderou de evaluare (job #1626373)
Borderou de evaluare (job #1626373)
Raport evaluator
Compilare:
user.cpp: In function ‘int calculate(int, int)’:
user.cpp:54:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (crt == strlen(s[y])-1)
^
user.cpp: In function ‘void process()’:
user.cpp:69:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (comun[i][j] == strlen(s[j])-1) {
^
user.cpp: In function ‘void solve()’:
user.cpp:126:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
int j = (i < nods.size()-1 ? comun[nods[i+1]][nods[i]]+1 : 1);
^
user.cpp:127:15: warning: statement has no effect [-Wunused-value]
for (j; s[nods[i]][j]; j++)
^
user.cpp: In function ‘void citire()’:
user.cpp:20:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:22:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:135: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:136: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:22:19:
/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/ccm1rSEz.o: In function `citire()':
user.cpp:(.text+0x3a): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 532kb | Wrong asnwer | 0 |
2 | 0ms | 540kb | Wrong asnwer | 0 |
3 | 0ms | 568kb | Wrong asnwer | 0 |
4 | 0ms | 636kb | Wrong asnwer | 0 |
5 | 0ms | 792kb | Wrong asnwer | 0 |
6 | 8ms | 3144kb | Wrong asnwer | 0 |
7 | 56ms | 2516kb | Wrong asnwer | 0 |
8 | 332ms | 9436kb | Wrong asnwer | 0 |
9 | 88ms | 23404kb | Wrong asnwer | 0 |
10 | 932ms | 34952kb | Wrong asnwer | 0 |
Punctaj total | 0 |