Borderou de evaluare (job #2351242)

Utilizator Eduard24Eduard Scaueru Eduard24 Data 22 februarie 2019 09:20:58
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void hull()': main.cpp:33:41: error: could not convert '(punct*)(& v)' from 'punct*' to 'punct' while(k>=2 && semn(H[k-1],H[k],v)<=0) k--; ^ main.cpp:34:16: error: no match for 'operator=' (operand types are 'punct' and 'punct [120005]') H[++k]=v; ^ main.cpp:7:8: note: candidate: constexpr punct& punct::operator=(const punct&) struct punct ^~~~~ main.cpp:7:8: note: no known conversion for argument 1 from 'punct [120005]' to 'const punct&' main.cpp:7:8: note: candidate: constexpr punct& punct::operator=(punct&&) main.cpp:7:8: note: no known conversion for argument 1 from 'punct [120005]' to 'punct&&' main.cpp:41:42: error: could not convert '(punct*)(& v)' from 'punct*' to 'punct' while(k>=kk && semn(H[k-1],H[k],v)<=0) k--; ^ main.cpp:42:16: error: no match for 'operator=' (operand types are 'punct' and 'punct [120005]') H[++k]=v; ^ main.cpp:7:8: note: candidate: constexpr punct& punct::operator=(const punct&) struct punct ^~~~~ main.cpp:7:8: note: no known conversion for argument 1 from 'punct [120005]' to 'const punct&' main.cpp:7:8: note: candidate: constexpr punct& punct::operator=(punct&&) main.cpp:7:8: note: no known conversion for argument 1 from 'punct [120005]' to 'punct&&' main.cpp: In function 'int main()': main.cpp:53:14: error: request for member 'x' in 'v', which is of non-class type 'punct [120005]' f>>v.x>>v.y; ^ main.cpp:53:19: error: request for member 'y' in 'v', which is of non-class type 'punct [120005]' f>>v.x>>v.y; ^ main.cpp:61:39: error: request for member 'x' in 'H', which is of non-class type 'punct [120005]' g<<fixed<<setprecision(12)<<H.x<<" "<<H.y<<"\n"; ^ main.cpp:61:49: error: request for member 'y' in 'H', which is of non-class type 'punct [120005]' g<<fixed<<setprecision(12)<<H.x<<" "<<H.y<<"\n"; ^ Non zero exit status: 1

Ceva nu functioneaza?