Pagini recente » Borderou de evaluare (job #3028) | Borderou de evaluare (job #2981032) | Borderou de evaluare (job #2272756) | Borderou de evaluare (job #456259) | Borderou de evaluare (job #3122107)
Borderou de evaluare (job #3122107)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:85:14: warning: 'char* fgets(char*, int, FILE*)' writing 512 bytes into a region of size 511 overflows the destination [-Wstringop-overflow=]
85 | fgets(s[0]+1, NMAX, f);
| ~~~~~^~~~~~~~~~~~~~~~~
main.cpp:29:6: note: at offset 1 into destination object 's' of size 512
29 | char s[2][NMAX];
| ^
In file included from /usr/include/c++/12.2.1/cstdio:42,
from main.cpp:2:
/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:86:14: warning: 'char* fgets(char*, int, FILE*)' writing 512 bytes into a region of size 511 overflows the destination [-Wstringop-overflow=]
86 | fgets(s[1]+1, NMAX, f);
| ~~~~~^~~~~~~~~~~~~~~~~
main.cpp:29:6: note: at offset 513 into destination object 's' of size 1024
29 | char s[2][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:86:14: warning: 'char* fgets(char*, int, FILE*)' writing 512 bytes into a region of size 511 overflows the destination [-Wstringop-overflow=]
86 | fgets(s[1]+1, NMAX, f);
| ~~~~~^~~~~~~~~~~~~~~~~
main.cpp:29:6: note: at offset 513 into destination object 's' of size 1024
29 | char s[2][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:86:14: warning: 'char* fgets(char*, int, FILE*)' writing 512 bytes into a region of size 511 overflows the destination [-Wstringop-overflow=]
86 | fgets(s[1]+1, NMAX, f);
| ~~~~~^~~~~~~~~~~~~~~~~
main.cpp:29:6: note: at offset 513 into destination object 's' of size 1024
29 | char s[2][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 |
1 | 28ms | 303kb | Time limit exceeded | 0 |
2 | 0ms | 1081kb | Ok! | 10 |
3 | 29ms | 462kb | Time limit exceeded | 0 |
4 | 29ms | 303kb | Time limit exceeded | 0 |
5 | 14ms | 303kb | Ok! | 10 |
6 | 29ms | 819kb | Time limit exceeded | 0 |
7 | 29ms | 2125kb | Time limit exceeded | 0 |
8 | 29ms | 1343kb | Time limit exceeded | 0 |
9 | 29ms | 819kb | Time limit exceeded | 0 |
10 | 29ms | 1343kb | Time limit exceeded | 0 |
Punctaj total | 20 |