Pagini recente » Borderou de evaluare (job #597729) | Borderou de evaluare (job #1960813) | Borderou de evaluare (job #2830107) | Borderou de evaluare (job #2291178) | Borderou de evaluare (job #2156548)
Borderou de evaluare (job #2156548)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s + 1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:12:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s + 1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:12:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s + 1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:24:44: warning: variable ‘last’ set but not used [-Wunused-but-set-variable]
int left = 1 , right = j ,mid, last = -1;
^
user.cpp:8:35: 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);
^
user.cpp:9:37: 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);
^
user.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &k);
^
user.cpp:12:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s + 1);
^
/tmp/ccSD65d0.o: In function `main':
user.cpp:(.text.startup+0x64): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 2464kb | Te stii ! | 5 |
2 | 0ms | 2460kb | Te stii ! | 5 |
3 | 0ms | 2468kb | Te stii ! | 5 |
4 | 4ms | 2500kb | Te stii ! | 5 |
5 | 4ms | 2520kb | Te stii ! | 5 |
6 | 4ms | 2556kb | Te stii ! | 5 |
7 | 4ms | 2544kb | Te stii ! | 5 |
8 | 4ms | 2580kb | Te stii ! | 5 |
9 | 4ms | 2508kb | Te stii ! | 5 |
10 | 4ms | 2532kb | Te stii ! | 5 |
11 | 4ms | 2552kb | Te stii ! | 5 |
12 | 4ms | 2564kb | Te stii ! | 5 |
13 | 4ms | 2620kb | Te stii ! | 5 |
14 | 4ms | 2720kb | Te stii ! | 5 |
15 | 16ms | 3148kb | Te stii ! | 5 |
16 | 40ms | 5060kb | Te stii ! | 5 |
17 | 92ms | 6440kb | Te stii ! | 5 |
18 | 232ms | 15428kb | Te stii ! | 5 |
19 | 308ms | 16416kb | Te stii ! | 5 |
20 | 448ms | 27660kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 95 |