Borderou de evaluare (job #3296149)

Utilizator Andrei1209Andrei Mircea Andrei1209 Data 11 mai 2025 20:14:24
Problema Cuburi3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:15:1: error: expected initializer before 'bool' 15 | bool cmp(cub a, cub b) | ^~~~ main.cpp: In function 'int main()': main.cpp:27:28: error: 'cmp' was not declared in this scope 27 | sort(v + 1, v + n + 1, cmp ); | ^~~ main.cpp:32:45: error: 'dp' was not declared in this scope 32 | if ( v[i].l <= v[j].l && maxi < dp[j] ) | ^~ main.cpp:38:9: error: 'dp' was not declared in this scope 38 | dp[i] = maxi + v[i].l; | ^~ main.cpp:42:21: error: 'dp' was not declared in this scope 42 | if ( rasp < dp[i] ) | ^~ main.cpp:40:19: warning: unused variable 'k' [-Wunused-variable] 40 | int rasp = 0, k = 0, poz; | ^ Non zero exit status: 1

Ceva nu functioneaza?