Borderou de evaluare (job #672877)

Utilizator avatar Eduard013 Ghenea Eduard Eduard013 IP ascuns
Problemă em2 (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 31 oct. 2022 08:30:12 Scor 0

Raport evaluator

Compilare: main.cpp:6: warning: ignoring '#pragma warning ' [-Wunknown-pragmas] 6 | #pragma warning(disable:4996) | main.cpp: In function 'void readMatrixFromFile(FILE*, char**, int)': main.cpp:43:33: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] 43 | matrice[i][j] = NULL; | ^~~~ main.cpp: In function 'int main()': main.cpp:157:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 157 | if (i == 0 && j == 0 || i == nrOfCharsPerLine-1 && j == nrOfCharsPerLine-1) | ~~~~~~~^~~~~~~~~ main.cpp: In function 'int findNrOfCharsPerLine(FILE*)': main.cpp:16:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf(fin, "%c", &actualChar); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:20:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(fin, "%c", &actualChar); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void readMatrixFromFile(FILE*, char**, int)': main.cpp:40:19: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 40 | fscanf(fin, "%c", &matrice[i][j]); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:107:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 107 | fscanf(fin, "%s", sAux1); | ~~~~~~^~~~~~~~~~~~~~~~~~ main.cpp:117:19: warning: ignoring return value of 'void* realloc(void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | (char*)realloc(sAux1, m); | ~~~~~~~^~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 118 kb Killed by Signal 11 0
2 1 ms 118 kb Killed by Signal 11 0
3 1 ms 118 kb Killed by Signal 11 0
4 1 ms 118 kb Killed by Signal 11 0
5 1 ms 118 kb Killed by Signal 11 0
6 1 ms 118 kb Killed by Signal 11 0
7 1 ms 118 kb Killed by Signal 11 0
8 1 ms 118 kb Killed by Signal 11 0
9 1 ms 118 kb Killed by Signal 11 0
10 1 ms 118 kb Killed by Signal 11 0
11 1 ms 118 kb Killed by Signal 11 0
12 1 ms 118 kb Killed by Signal 11 0
13 1 ms 118 kb Killed by Signal 11 0
14 1 ms 118 kb Killed by Signal 11 0
15 1 ms 118 kb Killed by Signal 11 0
16 1 ms 118 kb Killed by Signal 11 0
17 1 ms 118 kb Killed by Signal 11 0
18 1 ms 118 kb Killed by Signal 11 0
19 1 ms 118 kb Killed by Signal 11 0
20 1 ms 118 kb Killed by Signal 11 0
Punctaj total 0