Borderou de evaluare (job #1162265)
Utilizator | Data | 31 martie 2014 18:58:29 | |
---|---|---|---|
Problema | SETI | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:21:11: error: ‘int index’ redeclared as different kind of symbol
int n, m, index, ans [32001];
^
In file included from /usr/local/include/c++/4.8.0/cstring:42:0,
from user.cpp:2:
/usr/include/string.h:480:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘void insert(int, int)’:
user.cpp:53:31: error: no matching function for call to ‘std::vector<int>::push_back(<unresolved overloaded function type>)’
node -> v.push_back (index);
^
user.cpp:53:31: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/vector:64:0,
from user.cpp:3:
/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 = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = 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 ‘<unresolved overloaded function type>’ to ‘const value_type& {aka const 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 = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = 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 ‘<unresolved overloaded function type>’ to ‘std::vector<int>::value_type&& {aka int&&}’
user.cpp: In function ‘void solve()’:
user.cpp:87:15: error: overloaded function with no contextual type information
index = i;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !