Borderou de evaluare (job #2557099)

Utilizator mirceamaierean41Mircea Maierean mirceamaierean41 Data 25 februarie 2020 15:13:10
Problema Ferma3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 35

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:182:47: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] if (a[i - 1][j] + a[i - 1][j] != a[i][j] > maxi) ~~~~~~~~^~~~~~ main.cpp:189:47: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] if (a[i][j - 1] + a[i][j - 1] != a[i][j] > maxi) ~~~~~~~~^~~~~~ main.cpp:196:47: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] if (a[i + 1][j] + a[i + 1][j] != a[i][j] > maxi) ~~~~~~~~^~~~~~ main.cpp:203:47: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] if (a[i][j + 1] + a[i][j + 1] != a[i][j] > maxi) ~~~~~~~~^~~~~~ main.cpp:68:10: warning: unused variable 'max_char' [-Wunused-variable] char max_char; ^~~~~~~~ main.cpp:64:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i = 1; i <= n; ++i) ^~~ main.cpp:212:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' fout << ax << " " << ay << "\n" << car << "\n"; ^~~~ main.cpp:63:8: warning: 'car' may be used uninitialized in this function [-Wmaybe-uninitialized] char car; ^~~ main.cpp:212:46: warning: 'ay' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << ax << " " << ay << "\n" << car << "\n"; ^~~~ main.cpp:212:18: warning: 'ax' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << ax << " " << ay << "\n" << car << "\n"; ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms393kbCorect! Varianta 15
24ms393kbCorect! Varianta 15
35ms786kbCorect! Varianta 15
48ms917kbCorect! Varianta 15
539ms8650kbCorect! Varianta 15
62ms131kbLinie in afara matricei0
73ms262kbCorect! Varianta 25
83ms262kbGresit!0
93ms393kbGresit!0
103ms393kbGresit!0
115ms524kbGresit!0
127ms786kbGresit!0
1311ms1310kbGresit!0
147ms786kbGresit!0
1512ms1048kbGresit!0
1612ms1048kbGresit!0
1713ms1179kbGresit!0
1812ms1048kbGresit!0
1918ms1572kbGresit!0
202ms131kbCorect! Varianta 15
Punctaj total35

Ceva nu functioneaza?