Borderou de evaluare (job #3324469)

Utilizator vndianamaria@gmail.comIvan Diana [email protected] Data 22 noiembrie 2025 11:10:16
Problema Numarare triunghiuri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 5

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:18:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 18 | for (int i = 0; i < n - 2; i++) | ^~~ main.cpp:33:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 33 | cout << sol; | ^~~~ main.cpp:10:12: warning: unused variable 'm' [-Wunused-variable] 10 | int n, m, x, c = 0, sol = 0 ; | ^ main.cpp:10:15: warning: unused variable 'x' [-Wunused-variable] 10 | int n, m, x, c = 0, sol = 0 ; | ^ main.cpp:10:18: warning: unused variable 'c' [-Wunused-variable] 10 | int n, m, x, c = 0, sol = 0 ; | ^ main.cpp:31:23: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 31 | sol += (r - j); | ~~~^~~~ main.cpp:17:9: note: 'r' was declared here 17 | int r; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
30ms303kbOK5
40ms303kbIncorect0
50ms303kbIncorect0
60ms303kbIncorect0
70ms303kbIncorect0
80ms307kbIncorect0
90ms303kbIncorect0
100ms303kbIncorect0
110ms303kbIncorect0
120ms303kbIncorect0
130ms303kbIncorect0
140ms303kbIncorect0
153ms303kbIncorect0
163ms303kbIncorect0
174ms303kbIncorect0
184ms303kbIncorect0
193ms303kbIncorect0
205ms303kbIncorect0
Punctaj total5

Ceva nu functioneaza?