Borderou de evaluare (job #2259686)
Utilizator | Data | 13 octombrie 2018 17:13:12 | |
---|---|---|---|
Problema | Mosia | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void cmp(point, point)':
main.cpp:64:44: error: return-statement with a value, in function returning 'void' [-fpermissive]
return atan2(a.y, a.x) < atan2(b.y, b.x);
^
main.cpp: In function 'double aria(int)':
main.cpp:78:31: error: 'euclid' was not declared in this scope
return euclid(x + 1, x - 1) * abs()
^
main.cpp:78:39: error: no matching function for call to 'abs()'
return euclid(x + 1, x - 1) * abs()
^
In file included from /usr/include/c++/6/cstdlib:75:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:47,
from main.cpp:1:
/usr/include/stdlib.h:774:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
/usr/include/stdlib.h:774:12: note: candidate expects 1 argument, 0 provided
In file included from /usr/include/c++/6/valarray:587:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/6/bits/valarray_after.h:442:5: note: candidate: template<class _Tp> std::_Expr<std::_UnClos<std::_Abs, std::_ValArray, _Tp>, _Tp> std::abs(const std::valarray<_Tp>&)
_DEFINE_EXPR_UNARY_FUNCTION(abs, _Abs)
^
/usr/include/c++/6/bits/valarray_after.h:442:5: note: template argument deduction/substitution failed:
main.cpp:78:39: note: candidate expects 1 argument, 0 provided
return euclid(x + 1, x - 1) * abs()
^
In file included from /usr/include/c++/6/valarray:587:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/6/bits/valarray_after.h:442:5: note: candidate: template<class _Dom> std::_Expr<std::_UnClos<std::_Abs, std::_Expr, _Dom>, typename _Dom::value_type> std::abs(const std::_Expr<_Dom1, typename _Dom1::value_type>&)
_DEFINE_EXPR_UNARY_FUNCTION(abs, _Abs)
^
/usr/include/c++/6/bits/valarray_after.h:442:5: note: template argument deduction/substitution failed:
main.cpp:78:39: note: candidate expects 1 argument, 0 provided
return euclid(x + 1, x - 1) * abs()
^
In file included from /usr/include/c++/6/ccomplex:39:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/complex:597:5: note: candidate: template<class _Tp> _Tp std::abs(const std::complex<_Tp>&)
abs(const complex<_Tp>& __z) { return __complex_abs(__z.__rep()); }
^~~
/usr/include/c++/6/complex:597:5: note: template argument deduction/substitution failed:
main.cpp:78:39: note: candidate expects 1 argument, 0 provided
return euclid(x + 1, x - 1) * abs()
^
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:47:0,
from main.cpp:1:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !