Pagini recente » Borderou de evaluare (job #705163) | Borderou de evaluare (job #437111) | Borderou de evaluare (job #1198310) | Borderou de evaluare (job #84762) | Borderou de evaluare (job #1686966)
Borderou de evaluare (job #1686966)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:21: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:21: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:21: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:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sms.in", "r", stdin);
^
user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sms.out", "w", stdout);
^
user.cpp:20:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n", &N, &K);
^
user.cpp:21:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s + 1);
^
user.cpp:23:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf%lf", &pok[i], &pwr[i], &pbk[i]);
^
/tmp/cciYWAdv.o: In function `main':
user.cpp:(.text.startup+0x60): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 6744kb | Wrong answer... | 0 |
2 | 4ms | 6904kb | Wrong answer... | 0 |
3 | 8ms | 7068kb | Wrong answer... | 0 |
4 | 8ms | 7052kb | Wrong answer... | 0 |
5 | 192ms | 9272kb | Wrong answer... | 0 |
6 | Depăşit | 10740kb | Time limit exceeded. | 0 |
7 | Depăşit | 13148kb | Time limit exceeded. | 0 |
8 | Depăşit | 11212kb | Time limit exceeded. | 0 |
9 | Depăşit | 9120kb | Time limit exceeded. | 0 |
10 | Depăşit | 9260kb | Time limit exceeded. | 0 |
Punctaj total | 0 |