Borderou de evaluare (job #3183792)
Utilizator | Data | 13 decembrie 2023 12:00:31 | |
---|---|---|---|
Problema | Desen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:85:28: error: 'sqrt' was not declared in this scope
85 | m[++mk] = {i,j,sqrt(v[i].get_dist(v[j]))};
| ^~~~
main.cpp:85:53: error: no match for 'operator=' (operand types are 'mch' and '<brace-enclosed initializer list>')
85 | m[++mk] = {i,j,sqrt(v[i].get_dist(v[j]))};
| ^
main.cpp:11:8: note: candidate: 'constexpr mch& mch::operator=(const mch&)'
11 | struct mch
| ^~~
main.cpp:11:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const mch&'
main.cpp:11:8: note: candidate: 'constexpr mch& mch::operator=(mch&&)'
main.cpp:11:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'mch&&'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !