Pagini recente » Borderou de evaluare (job #1071595) | Borderou de evaluare (job #3319479) | Borderou de evaluare (job #3296627) | Borderou de evaluare (job #1200933) | Borderou de evaluare (job #1200935)
Borderou de evaluare (job #1200935)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:20:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(ln);
^~~~
In file included from user.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:20:12: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(ln);
^
In file included from user.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:22:25: warning: NULL used in arithmetic [-Wpointer-arith]
for(i = 0; ln[i] != NULL; ++ i)
^~~~
user.cpp:18:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n", &n, &d);
^
user.cpp:20:13: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(ln);
^
user.cpp: In function ‘int main()’:
user.cpp:43:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("slidingwindow.in", "r", stdin);
^
user.cpp:44:46: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("slidingwindow.out", "w", stdout);
^
/tmp/cciLvrHx.o: In function `read()':
user.cpp:(.text+0x21): warning: the `gets' function is dangerous and should not be used.
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 2776kb | Incorect | 0 |
| 2 | 0ms | 2772kb | OK | 5 |
| 3 | 0ms | 2772kb | OK | 5 |
| 4 | 84ms | 16344kb | Killed by signal 11(SIGSEGV). | 0 |
| 5 | 344ms | 16352kb | OK | 5 |
| 6 | 344ms | 16352kb | OK | 5 |
| 7 | 340ms | 16348kb | OK | 5 |
| 8 | 88ms | 16344kb | Killed by signal 11(SIGSEGV). | 0 |
| 9 | 420ms | 16368kb | OK | 5 |
| 10 | 416ms | 16368kb | OK | 5 |
| 11 | 404ms | 16372kb | OK | 5 |
| 12 | 604ms | 16584kb | OK | 5 |
| 13 | 580ms | 16588kb | OK | 5 |
| 14 | 552ms | 16584kb | OK | 5 |
| 15 | 764ms | 18692kb | OK | 5 |
| 16 | 844ms | 18688kb | OK | 5 |
| 17 | 896ms | 18692kb | OK | 5 |
| 18 | 192ms | Depăşit | Memory limit exceeded. | 0 |
| 19 | 0ms | 2768kb | Incorect | 0 |
| 20 | 88ms | 16344kb | Killed by signal 11(SIGSEGV). | 0 |
| Punctaj total | 70 |