Borderou de evaluare (job #1192330)

Utilizator alex_HarryBabalau Alexandru alex_Harry Data 28 mai 2014 21:22:51
Problema Litere2 Status done
Runda Infoarena Monthly 2014 - Runda 5 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:5: error: ‘int index’ redeclared as different kind of symbol int index,Result; ^ In file included from /usr/include/c++/4.8/cstring:42:0, from user.cpp:3: /usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’ index (__const char *__s, int __c) __THROW ^ user.cpp: In function ‘void getWord()’: user.cpp:20:7: error: no pre-increment operator for type ++index; ^ user.cpp:26:30: error: no matching function for call to ‘std::vector<int>::push_back(<unresolved overloaded function type>)’ G[number].push_back(index); ^ user.cpp:26:30: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:2: /usr/include/c++/4.8/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/include/c++/4.8/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/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 = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = 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 ‘<unresolved overloaded function type>’ to ‘std::vector<int>::value_type&& {aka int&&}’ user.cpp: In function ‘void parseLine()’: user.cpp:48:21: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ Words[index+1].push_back(Str[i]); ^ user.cpp: In function ‘void Print()’: user.cpp:70:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<Positions.size();i++) ^

Ceva nu functioneaza?