Borderou de evaluare (job #2049491)

Utilizator OldpugAlex Ionescu Oldpug Data 27 octombrie 2017 11:58:47
Problema Heroes of Might & Magic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘constexpr void point::offset(const point&) const’: user.cpp:10:7: error: assignment of member ‘point::x’ in read-only object x += pt.x; ^ user.cpp:11:7: error: assignment of member ‘point::y’ in read-only object y += pt.y; ^ user.cpp:8:18: error: invalid return type ‘void’ of constexpr function ‘constexpr void point::offset(const point&) const’ constexpr void offset(const point &pt) ^

Ceva nu functioneaza?