Borderou de evaluare (job #3176951)
Utilizator | Data | 28 noiembrie 2023 09:47:59 | |
---|---|---|---|
Problema | Cerc3 | 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:38:31: error: 'sqrt' was not declared in this scope
38 | v[mp[d]-1].push_back({sqrt(a*a+b*b)-c, sqrt(a*a+b*b)+c});
| ^~~~
main.cpp:38:29: error: no matching function for call to 'std::vector<pct>::push_back(<brace-enclosed initializer list>)'
38 | v[mp[d]-1].push_back({sqrt(a*a+b*b)-c, sqrt(a*a+b*b)+c});
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/vector:64,
from main.cpp:4:
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = pct; _Alloc = std::allocator<pct>; value_type = pct]'
1276 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<pct>::value_type&' {aka 'const pct&'}
1276 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = pct; _Alloc = std::allocator<pct>; value_type = pct]'
1293 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<pct>::value_type&&' {aka 'pct&&'}
1293 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:51:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<pct>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int j=0; j<v[i].size(); j++)
| ~^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !