Pagini recente » Borderou de evaluare (job #13670) | Borderou de evaluare (job #2647059) | Borderou de evaluare (job #52512) | Borderou de evaluare (job #2610207) | Borderou de evaluare (job #1625925)
Borderou de evaluare (job #1625925)
Raport evaluator
Compilare:
user.cpp: In function ‘int calculate(int, int)’:
user.cpp:53:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (crt == strlen(s[y])-1)
^
user.cpp: In function ‘void process()’:
user.cpp:67:37: 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:128:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
int j = (i < nods.size()-1 ? comun[nods[i+1]][nods[i]] : 1);
^
user.cpp:129:15: warning: statement has no effect [-Wunused-value]
for (j; s[nods[i]][j]; j++)
^
user.cpp: In function ‘void citire()’:
user.cpp:19:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:21:13: 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:137: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:138: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:21:13:
/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/ccw8QowZ.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 | 512kb | Wrong asnwer | 0 |
2 | 0ms | 520kb | Wrong asnwer | 0 |
3 | 0ms | 536kb | Wrong asnwer | 0 |
4 | 0ms | 576kb | OK! | 10 |
5 | 0ms | 668kb | Wrong asnwer | 0 |
6 | 4ms | 2664kb | Wrong asnwer | 0 |
7 | 48ms | 2092kb | Wrong asnwer | 0 |
8 | 276ms | 5824kb | Wrong asnwer | 0 |
9 | 80ms | 20524kb | Wrong asnwer | 0 |
10 | 904ms | 20616kb | Wrong asnwer | 0 |
Punctaj total | 10 |