Borderou de evaluare (job #1118424)
Utilizator | Data | 24 februarie 2014 10:54:00 | |
---|---|---|---|
Problema | Catun | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:39: error: ‘int y1’ redeclared as different kind of symbol
int n,m,k,i,schimbat,nc,fort[nmax],x1,y1,c;
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/iosfwd:38,
from /usr/local/include/c++/4.8.0/ios:38,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void citire()’:
user.cpp:25:10: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f>>x1>>y1>>c;
^
In file included from /usr/local/include/c++/4.8.0/fstream:38:0,
from user.cpp:1:
/usr/local/include/c++/4.8.0/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:26:40: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(std::pair<double (*)(double)throw (), int>)’
a[x1].push_back(make_pair(y1,c));
^
user.cpp:26:40: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/vector:64:0,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(const value_type& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::pair<double (*)(double)throw (), int>’ to ‘const value_type& {aka const std::pair<int, int>&}’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(value_type&& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::pair<double (*)(double)throw (), int>’ to ‘std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’
user.cpp:27:13: error: invalid types ‘std::vector<std::pair<int, int> > [36005][double(double)throw ()]’ for array subscript
a[y1].push_back(make_pair(x1,c));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !