Pagini recente » Borderou de evaluare (job #565936) | Borderou de evaluare (job #712067) | Borderou de evaluare (job #619501) | Borderou de evaluare (job #1471594) | Borderou de evaluare (job #2222244)
Borderou de evaluare (job #2222244)
Raport evaluator
Compilare:
user.cpp: In member function ‘void huge::Read()’:
user.cpp:14:7: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a + 1);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:14:17: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a + 1);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp: In member function ‘void huge::operator+=(const huge&)’:
user.cpp:39:11: warning: operation on ‘i’ may be undefined [-Wsequence-point]
a[++i] = a[i] + b.a[i] + tr - (i <= l) * '0' - (i <= b.l) * '0';
^~~
user.cpp:39:11: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp:39:11: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp:39:11: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘int main()’:
user.cpp:55:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("next.in", "r", stdin);
^
user.cpp:56:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("next.out", "w", stdout);
^
user.cpp:60:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &k);
^
user.cpp: In member function ‘void huge::Read()’:
user.cpp:14:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a + 1);
^
/tmp/ccuVa5hZ.o: In function `main':
user.cpp:(.text.startup+0x59): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 860kb | OK | 10 |
2 | 0ms | 752kb | OK | 10 |
3 | 0ms | 756kb | OK | 10 |
4 | 0ms | 792kb | OK | 10 |
5 | 0ms | 752kb | OK | 10 |
6 | 4ms | 804kb | OK | 10 |
7 | 20ms | 916kb | OK | 10 |
8 | 52ms | 1312kb | OK | 10 |
9 | 72ms | 1540kb | OK | 10 |
10 | 80ms | 1632kb | OK | 10 |
Punctaj total | 100 |