Pagini recente » Cod sursa (job #2984478) | Cod sursa (job #2041205) | Borderou de evaluare (job #2077898) | Borderou de evaluare (job #1963912) | Borderou de evaluare (job #2211091)
Borderou de evaluare (job #2211091)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:30:2: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^~~~
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:30:8: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
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:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secventa.in", "r", stdin);
^
user.cpp:23:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secventa.out", "w", stdout);
^
user.cpp:25:26: 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:30:9: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:71:8: warning: ‘bestOcc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d %d", bestOcc + 1, bestOcc + k, best);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/cceQZMHy.o: In function `main':
user.cpp:(.text.startup+0x65): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 2892kb | OK | 10 |
2 | 0ms | 2976kb | OK | 10 |
3 | 8ms | 5152kb | OK | 10 |
4 | 8ms | 5156kb | OK | 10 |
5 | 8ms | 5156kb | OK | 10 |
6 | 12ms | 5208kb | OK | 10 |
7 | 16ms | 5524kb | OK | 10 |
8 | 24ms | 5912kb | OK | 10 |
9 | 36ms | 6308kb | OK | 10 |
10 | 44ms | 6692kb | OK | 10 |
Punctaj total | 100 |