Borderou de evaluare (job #2749002)

Utilizator PredescuSebastianIonPredescu Sebastian Ion PredescuSebastianIon Data 4 mai 2021 15:55:01
Problema Ambuscada Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:27: error: conflicting declaration 'long long int v [100005]' long long n,k,m,p,v[100005],d[100005]; ^ main.cpp:9:3: note: previous declaration as 'ceva v [100005]' } v[100005]; ^ main.cpp: In function 'void precalcul()': main.cpp:33:11: error: no match for 'operator=' (operand types are 'ceva' and 'int') v[0]=-1; ^ main.cpp:6:8: note: candidate: constexpr ceva& ceva::operator=(const ceva&) struct ceva ^~~~ main.cpp:6:8: note: no known conversion for argument 1 from 'int' to 'const ceva&' main.cpp:6:8: note: candidate: constexpr ceva& ceva::operator=(ceva&&) main.cpp:6:8: note: no known conversion for argument 1 from 'int' to 'ceva&&' main.cpp:37:15: error: no match for 'operator=' (operand types are 'ceva' and 'int') v[i]=-1; ^ main.cpp:6:8: note: candidate: constexpr ceva& ceva::operator=(const ceva&) struct ceva ^~~~ main.cpp:6:8: note: no known conversion for argument 1 from 'int' to 'const ceva&' main.cpp:6:8: note: candidate: constexpr ceva& ceva::operator=(ceva&&) main.cpp:6:8: note: no known conversion for argument 1 from 'int' to 'ceva&&' main.cpp:41:10: error: no match for 'operator=' (operand types are 'ceva' and 'long long int') v[k]=sum; ^~~ main.cpp:6:8: note: candidate: constexpr ceva& ceva::operator=(const ceva&) struct ceva ^~~~ main.cpp:6:8: note: no known conversion for argument 1 from 'long long int' to 'const ceva&' main.cpp:6:8: note: candidate: constexpr ceva& ceva::operator=(ceva&&) main.cpp:6:8: note: no known conversion for argument 1 from 'long long int' to 'ceva&&' main.cpp:51:14: error: no match for 'operator=' (operand types are 'ceva' and 'long long int') v[i]=sum; ^~~ main.cpp:6:8: note: candidate: constexpr ceva& ceva::operator=(const ceva&) struct ceva ^~~~ main.cpp:6:8: note: no known conversion for argument 1 from 'long long int' to 'const ceva&' main.cpp:6:8: note: candidate: constexpr ceva& ceva::operator=(ceva&&) main.cpp:6:8: note: no known conversion for argument 1 from 'long long int' to 'ceva&&' main.cpp: In function 'void solve()': main.cpp:96:22: error: cannot convert 'ceva' to 'long long int' for argument '1' to 'long long int cb2(long long int)' g<<cb2(v[poz])<<'\n'; ^ Non zero exit status: 1

Ceva nu functioneaza?