Pagini recente » Borderou de evaluare (job #2466710) | Borderou de evaluare (job #2027744) | Borderou de evaluare (job #543108) | Borderou de evaluare (job #2181288) | Borderou de evaluare (job #3186199)
Borderou de evaluare (job #3186199)
Raport evaluator
Compilare:
main.cpp: In function 'bool asociaza(int)':
main.cpp:17:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i = 0; i < graf[x].size(); i++)
| ~~^~~~~~~~~~~~~~~~
main.cpp: In function 'void citesteDate()':
main.cpp:37:14: warning: 'char* fgets(char*, int, FILE*)' writing 10500 bytes into a region of size 10499 overflows the destination [-Wstringop-overflow=]
37 | fgets(s + 1, nmax * 100, stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:36:14: note: at offset 1 into destination object 's' of size 10500
36 | char s[nmax * 100];
| ^
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:37:14: warning: 'char* fgets(char*, int, FILE*)' writing 10500 bytes into a region of size 10499 overflows the destination [-Wstringop-overflow=]
37 | fgets(s + 1, nmax * 100, stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:36:14: note: at offset 1 into destination object 's' of size 10500
36 | char s[nmax * 100];
| ^
/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:37:14: warning: 'char* fgets(char*, int, FILE*)' writing 10500 bytes into a region of size 10499 overflows the destination [-Wstringop-overflow=]
37 | fgets(s + 1, nmax * 100, stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:36:14: note: at offset 1 into destination object 's' of size 10500
36 | char s[nmax * 100];
| ^
/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 | 0ms | 303kb | S-a respectat legea! | 10 |
2 | 0ms | 303kb | S-a respectat legea! | 10 |
3 | 0ms | 303kb | S-a respectat legea! | 10 |
4 | 0ms | 303kb | S-a respectat legea! | 10 |
5 | 0ms | 303kb | S-a respectat legea! | 10 |
6 | 0ms | 303kb | S-a respectat legea! | 10 |
7 | 0ms | 303kb | S-a respectat legea! | 10 |
8 | 0ms | 303kb | S-a respectat legea! | 10 |
9 | 0ms | 303kb | S-a respectat legea! | 10 |
10 | 0ms | 303kb | S-a respectat legea! | 10 |
Punctaj total | 100 |