Borderou de evaluare (job #3329299)

Utilizator MMEnisEnis Mutlu MMEnis Data 12 decembrie 2025 17:47:30
Problema Sprim Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void precalc()': main.cpp:18:22: error: invalid use of member function 'constexpr std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?) 18 | if ( ciur[i].size == 0 ) | ~~~~~~~~^~~~ | () main.cpp: In function 'void cmmdc(int, int)': main.cpp:36:16: error: return-statement with a value, in function returning 'void' [-fpermissive] 36 | return max ( a, b ); | ~~~~^~~~~~~~ main.cpp: In function 'int main()': main.cpp:47:41: error: invalid use of member function 'constexpr std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?) 47 | for ( int j = 0; j < ciur[v[i]].size; j ++ ) | ~~~~~~~~~~~^~~~ | () main.cpp:49:58: error: invalid types 'int[int]' for array subscript 49 | aiabuna[i] = max ( aiabuna[i], last[ciur[v[i][j]] ); | ^ main.cpp:49:62: error: expected ']' before ')' token 49 | aiabuna[i] = max ( aiabuna[i], last[ciur[v[i][j]] ); | ^~ | ] main.cpp:53:9: warning: unused variable 'j' [-Wunused-variable] 53 | int j = 2; | ^ Non zero exit status: 1

Ceva nu functioneaza?