Pagini recente » Borderou de evaluare (job #1921666) | Borderou de evaluare (job #1769732) | Borderou de evaluare (job #383611) | Borderou de evaluare (job #2907623) | Borderou de evaluare (job #3138085)
Borderou de evaluare (job #3138085)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:13:14: warning: 'char* fgets(char*, int, FILE*)' writing 10000005 bytes into a region of size 10000004 overflows the destination [-Wstringop-overflow=]
13 | fgets(A + 1, NMAX, stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp:5:6: note: at offset 1 into destination object 'A' of size 10000005
5 | char A[NMAX];
| ^
In file included from /usr/include/c++/12.2.1/cstdio:42,
from main.cpp:1:
/usr/include/stdio.h:592:14: note: in a call to function 'char* fgets(char*, int, FILE*)' declared with attribute 'access (write_only, 1, 2)'
592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
| ^~~~~
main.cpp:13:14: warning: 'char* fgets(char*, int, FILE*)' writing 10000005 bytes into a region of size 10000004 overflows the destination [-Wstringop-overflow=]
13 | fgets(A + 1, NMAX, stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp:5:6: note: at offset 1 into destination object 'A' of size 10000005
5 | char A[NMAX];
| ^
/usr/include/stdio.h:592:14: note: in a call to function 'char* fgets(char*, int, FILE*)' declared with attribute 'access (write_only, 1, 2)'
592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
| ^~~~~
main.cpp:13:14: warning: 'char* fgets(char*, int, FILE*)' writing 10000005 bytes into a region of size 10000004 overflows the destination [-Wstringop-overflow=]
13 | fgets(A + 1, NMAX, stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp:5:6: note: at offset 1 into destination object 'A' of size 10000005
5 | char A[NMAX];
| ^
/usr/include/stdio.h:592:14: note: in a call to function 'char* fgets(char*, int, FILE*)' declared with attribute 'access (write_only, 1, 2)'
592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
| ^~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | OK | 10 | 10 |
2 | 1ms | 2654kb | OK | 10 | 10 |
3 | 39ms | 50335kb | OK | 10 | 10 |
4 | 19ms | 42315kb | OK | 10 | 30 |
5 | 19ms | 42274kb | OK | 10 |
6 | 19ms | 42360kb | OK | 10 |
7 | 24ms | 50278kb | OK | 10 | 40 |
8 | 19ms | 41996kb | OK | 10 |
9 | 24ms | 47656kb | OK | 10 |
10 | 24ms | 44056kb | OK | 10 |
Punctaj total | 100 |