Borderou de evaluare (job #1266520)
Utilizator | Tatomir Alex atatomir | Data | 18 noiembrie 2014 20:34:44 |
---|---|---|---|
Problema | Segmente | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:18: error: ‘long int y1’ redeclared as different kind of symbol
long n,i,j,x1,x2,y1,y2,m;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/iostream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘bool isGood(long int)’:
user.cpp:45:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<O.size()-1;i++){
^
user.cpp:46:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=i+1;j<O.size();j++){
^
user.cpp: In function ‘int main()’:
user.cpp:67:48: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%ld %ld %ld %ld",&x1,&y1,&x2,&y2);
^
user.cpp:69:41: error: no matching function for call to ‘std::vector<std::pair<long int, std::pair<long int, long int> > >::push_back(std::pair<long int, std::pair<double (*)(double)throw (), long int> >)’
V.push_back(mp(x1,mp(y1,y2)));
^
user.cpp:69:41: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long int, std::pair<long int, long int> >; _Alloc = std::allocator<std::pair<long int, std::pair<long int, long int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<long int, std::pair<long int, long int> >]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::pair<long int, std::pair<double (*)(double)throw (), long int> >’ to ‘const value_type& {aka const std::pair<long int, std::pair<long int, long int> >&}’
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<long int, std::pair<long int, long int> >; _Alloc = std::allocator<std::pair<long int, std::pair<long int, long int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<long int, std::pair<long int, long int> >]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::pair<long int, std::pair<double (*)(double)throw (), long int> >’ to ‘std::vector<std::pair<long int, std::pair<long int, long int> > >::value_type&& {aka std::pair<long int, std::pair<long int, long int> >&&}’
user.cpp:71:41: error: no matching function for call to ‘std::vector<std::pair<long int, std::pair<long int, long int> > >::push_back(std::pair<double (*)(double)throw (), std::pair<long int, long int> >)’
O.push_back(mp(y1,mp(x1,x2)));
^
user.cpp:71:41: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long int, std::pair<long int, long int> >; _Alloc = std::allocator<std::pair<long int, std::pair<long int, long int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<long int, std::pair<long int, long int> >]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::pair<double (*)(double)throw (), std::pair<long int, long int> >’ to ‘const value_type& {aka const std::pair<long int, std::pair<long int, long int> >&}’
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<long int, std::pair<long int, long int> >; _Alloc = std::allocator<std::pair<long int, std::pair<long int, long int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<long int, std::pair<long int, long int> >]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::pair<double (*)(double)throw (), std::pair<long int, long int> >’ to ‘std::vector<std::pair<long int, std::pair<long int, long int> > >::value_type&& {aka std::pair<long int, std::pair<long int, long int> >&&}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !