Borderou de evaluare (job #3216655)

Utilizator mircea_007Mircea Rebengiuc mircea_007 Data 18 martie 2024 23:16:40
Problema Petarbore Status done
Runda arhiva-vianu Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:15:3: error: 'magic_sauce' does not name a type 15 | magic_sauce ZP operator *= ( const ZP& that ) { return *this = ZP( x * (ll)that.x ); } | ^~~~~~~~~~~ main.cpp: In member function 'ZP ZP::operator*(const ZP&) const': main.cpp:31:63: error: no match for 'operator*=' (operand types are 'ZP' and 'const ZP') 31 | ZP operator * ( const ZP& that ) const { return ZP( *this ) *= that; } | ~~~~~~~~~~~~^~~~~~~ main.cpp: In function 'ZP lgput(ZP, int)': main.cpp:41:11: error: no match for 'operator*=' (operand types are 'ZP' and 'ZP') 41 | ret *= base; | ~~~~^~~~~~~ main.cpp:43:10: error: no match for 'operator*=' (operand types are 'ZP' and 'ZP') 43 | base *= base; | ~~~~~^~~~~~~ main.cpp: In function 'ZP operator/(ZP, ZP)': main.cpp:55:11: error: no match for 'operator*=' (operand types are 'ZP' and 'ZP') 55 | ret *= base; | ~~~~^~~~~~~ main.cpp:57:10: error: no match for 'operator*=' (operand types are 'ZP' and 'ZP') 57 | base *= base; | ~~~~~^~~~~~~ main.cpp: In function 'void Arbore::remove_edge(int, int)': main.cpp:269:35: error: no match for 'operator*=' (operand types are 'ZP' and 'ZP') 269 | aint[idx].cnt[false][false] *= mult; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ main.cpp:272:35: error: no match for 'operator*=' (operand types are 'ZP' and 'ZP') 272 | aint[idx].cnt[true][true] *= mult; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ main.cpp:274:35: error: no match for 'operator*=' (operand types are 'ZP' and 'ZP') 274 | aint[idx].cnt[true][true] *= cnt_u.cnt[false] / prev.cnt[false]; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:276:35: error: no match for 'operator*=' (operand types are 'ZP' and 'ZP') 276 | aint[idx].cnt[true][true] *= cnt_u.cnt[false] / (prev.cnt[false] + prev.cnt[true]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?