Borderou de evaluare (job #2859131)

Utilizator iancupoppPopp Iancu Alexandru iancupopp Data 28 februarie 2022 21:25:50
Problema Cartite Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve2()': main.cpp:108:28: error: no matching function for call to 'Punct::Punct(int, int)' 108 | if (a == Punct(-1, -1)) | ^ main.cpp:14:8: note: candidate: 'Punct::Punct()' 14 | struct Punct { | ^~~~~ main.cpp:14:8: note: candidate expects 0 arguments, 2 provided main.cpp:14:8: note: candidate: 'constexpr Punct::Punct(const Punct&)' main.cpp:14:8: note: candidate expects 1 argument, 2 provided main.cpp:14:8: note: candidate: 'constexpr Punct::Punct(Punct&&)' main.cpp:14:8: note: candidate expects 1 argument, 2 provided main.cpp:113:24: error: no matching function for call to 'Punct::Punct(int, int)' 113 | if (a == Punct(-1, -1)) | ^ main.cpp:14:8: note: candidate: 'Punct::Punct()' 14 | struct Punct { | ^~~~~ main.cpp:14:8: note: candidate expects 0 arguments, 2 provided main.cpp:14:8: note: candidate: 'constexpr Punct::Punct(const Punct&)' main.cpp:14:8: note: candidate expects 1 argument, 2 provided main.cpp:14:8: note: candidate: 'constexpr Punct::Punct(Punct&&)' main.cpp:14:8: note: candidate expects 1 argument, 2 provided Non zero exit status: 1

Ceva nu functioneaza?