Borderou de evaluare (job #3316533)

Utilizator adr_grIrina S adr_gr Data 19 octombrie 2025 08:42:08
Problema Curcubeu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:34:26: error: no match for 'operator=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<Op>, Op>::value_type' {aka 'Op'} and '<brace-enclosed initializer list>') 34 | assign[l] = {i, C}; | ^ main.cpp:9:8: note: candidate: 'constexpr Op& Op::operator=(const Op&)' 9 | struct Op { | ^~ main.cpp:9:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const Op&' main.cpp:9:8: note: candidate: 'constexpr Op& Op::operator=(Op&&)' main.cpp:9:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'Op&&' main.cpp:35:31: error: no match for 'operator=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<Op>, Op>::value_type' {aka 'Op'} and '<brace-enclosed initializer list>') 35 | assign[r + 1] = {-i, C}; | ^ main.cpp:9:8: note: candidate: 'constexpr Op& Op::operator=(const Op&)' 9 | struct Op { | ^~ main.cpp:9:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const Op&' main.cpp:9:8: note: candidate: 'constexpr Op& Op::operator=(Op&&)' main.cpp:9:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'Op&&' main.cpp:69:2: error: expected '}' at end of input 69 | } | ^ main.cpp:16:12: note: to match this '{' 16 | int main() { | ^ Non zero exit status: 1

Ceva nu functioneaza?