Pagini recente » Borderou de evaluare (job #1980201) | Borderou de evaluare (job #537069) | Borderou de evaluare (job #855868) | Borderou de evaluare (job #1724554) | Borderou de evaluare (job #3122151)
Borderou de evaluare (job #3122151)
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 | 2ms | 557kb | Ok! | 10 |
| 2 | 0ms | 1081kb | Ok! | 10 |
| 3 | 0ms | 557kb | Ok! | 10 |
| 4 | 0ms | 557kb | Ok! | 10 |
| 5 | 0ms | 303kb | Ok! | 10 |
| 6 | 29ms | 17702kb | Time limit exceeded | 0 |
| 7 | 28ms | 25387kb | Time limit exceeded | 0 |
| 8 | 29ms | 2744kb | Time limit exceeded | 0 |
| 9 | 29ms | 1310kb | Time limit exceeded | 0 |
| 10 | 29ms | 1736kb | Time limit exceeded | 0 |
| Punctaj total | 50 |