Borderou de evaluare (job #3186199)

Utilizator Nicoleta114Caramaliu Nicoleta Nicoleta114 Data 21 decembrie 2023 23:38:48
Problema Senat Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

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
10ms303kbS-a respectat legea!10
20ms303kbS-a respectat legea!10
30ms303kbS-a respectat legea!10
40ms303kbS-a respectat legea!10
50ms303kbS-a respectat legea!10
60ms303kbS-a respectat legea!10
70ms303kbS-a respectat legea!10
80ms303kbS-a respectat legea!10
90ms303kbS-a respectat legea!10
100ms303kbS-a respectat legea!10
Punctaj total100

Ceva nu functioneaza?