Borderou de evaluare (job #1069858)
Utilizator | Dan H Alexandru danalex97 | Data | 30 decembrie 2013 16:49:56 |
---|---|---|---|
Problema | Bombe | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:48:13: error: reference to ‘function’ is ambiguous
double dist(function a,function b,double momentum)
^
user.cpp:31:8: note: candidates are: struct function
struct function
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algo.h:66:0,
from /usr/local/include/c++/4.8.0/algorithm:62,
from user.cpp:1:
/usr/local/include/c++/4.8.0/functional:1866:11: note: template<class _Signature> class std::function
class function;
^
user.cpp:48:24: error: reference to ‘function’ is ambiguous
double dist(function a,function b,double momentum)
^
user.cpp:31:8: note: candidates are: struct function
struct function
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algo.h:66:0,
from /usr/local/include/c++/4.8.0/algorithm:62,
from user.cpp:1:
/usr/local/include/c++/4.8.0/functional:1866:11: note: template<class _Signature> class std::function
class function;
^
user.cpp:48:35: error: expected primary-expression before ‘double’
double dist(function a,function b,double momentum)
^
user.cpp:48:50: error: expression list treated as compound expression in initializer [-fpermissive]
double dist(function a,function b,double momentum)
^
user.cpp:49:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
user.cpp:72:11: error: reference to ‘function’ is ambiguous
double i2(function f1,function f2,double v)
^
user.cpp:31:8: note: candidates are: struct function
struct function
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algo.h:66:0,
from /usr/local/include/c++/4.8.0/algorithm:62,
from user.cpp:1:
/usr/local/include/c++/4.8.0/functional:1866:11: note: template<class _Signature> class std::function
class function;
^
user.cpp:72:23: error: reference to ‘function’ is ambiguous
double i2(function f1,function f2,double v)
^
user.cpp:31:8: note: candidates are: struct function
struct function
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !