Pagini recente » Cod sursa (job #855896) | Borderou de evaluare (job #1325788) | Borderou de evaluare (job #1440582) | Borderou de evaluare (job #1738942) | Borderou de evaluare (job #1660557)
Borderou de evaluare (job #1660557)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:22: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:22: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:22: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:17: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:18: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:21: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:22:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s + 1);
^
user.cpp:24: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/cccY2Yas.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 | 6748kb | Ok! | 10 |
| 2 | 8ms | 7076kb | Ok! | 10 |
| 3 | 8ms | 6776kb | Ok! | 10 |
| 4 | 12ms | 6872kb | Ok! | 10 |
| 5 | Depăşit | 7132kb | Time limit exceeded. | 0 |
| 6 | Depăşit | 20028kb | Time limit exceeded. | 0 |
| 7 | Depăşit | 26772kb | Time limit exceeded. | 0 |
| 8 | Depăşit | 26432kb | Time limit exceeded. | 0 |
| 9 | Depăşit | 27004kb | Time limit exceeded. | 0 |
| 10 | Depăşit | 26876kb | Time limit exceeded. | 0 |
| Punctaj total | 40 |