Pagini recente » Borderou de evaluare (job #1254908) | Borderou de evaluare (job #626012) | Borderou de evaluare (job #747146) | Borderou de evaluare (job #301952) | Borderou de evaluare (job #2530865)
Borderou de evaluare (job #2530865)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:45:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(crt.second == l.size())
~~~~~~~~~~~^~~~~~~~~~~
main.cpp:51:38: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d %d", maxim, l.size() - 1);
^
main.cpp:31:28: warning: unused variable 'poz' [-Wunused-variable]
int nrc = 0, maxim = -1, poz;
^~~
main.cpp:29:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("blis.in", "r", stdin);
^
main.cpp:30:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("blis.out", "w", stdout);
^
main.cpp:33:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &k);
^
main.cpp:34:32: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(s + 1, NMAX + 5, stdin);
^
In file included from /usr/include/stdio.h:936:0,
from /usr/include/c++/6/cstdio:42,
from /usr/include/c++/6/ext/string_conversions.h:43,
from /usr/include/c++/6/bits/basic_string.h:5420,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
In function 'char* fgets(char*, int, FILE*)',
inlined from 'int main()' at main.cpp:34:32:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 7ms | 2490kb | Te stii ! | 5 |
2 | 7ms | 2490kb | Te stii ! | 5 |
3 | 7ms | 2490kb | Te stii ! | 5 |
4 | 8ms | 2621kb | Te stii ! | 5 |
5 | 8ms | 2621kb | Te stii ! | 5 |
6 | 9ms | 2752kb | Te stii ! | 5 |
7 | 9ms | 2621kb | Te stii ! | 5 |
8 | 9ms | 2621kb | Te stii ! | 5 |
9 | 8ms | 2621kb | Te stii ! | 5 |
10 | 9ms | 2621kb | Te stii ! | 5 |
11 | 9ms | 2752kb | Te stii ! | 5 |
12 | 9ms | 2752kb | Te stii ! | 5 |
13 | 10ms | 2752kb | Te stii ! | 5 |
14 | 10ms | 2752kb | Te stii ! | 5 |
15 | 24ms | 3932kb | Te stii ! | 5 |
16 | 49ms | 5222kb | Te stii ! | 5 |
17 | 121ms | 10747kb | Te stii ! | 5 |
18 | 229ms | 16252kb | Te stii ! | 5 |
19 | 331ms | 24330kb | Te stii ! | 5 |
20 | 467ms | 29884kb | Te stii ! | 5 |
Punctaj total | 100 |