1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Users\Alx101\Documents\C++\GameList.cpp" -o "C:\Users\Alx101\Documents\C++\GameList.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
C:\Users\Alx101\Documents\C++\GameList.cpp: In function `int main()':
C:\Users\Alx101\Documents\C++\GameList.cpp:27: error: uninitialized const `add'
C:\Users\Alx101\Documents\C++\GameList.cpp:30: error: assignment of read-only variable `add'
C:\Users\Alx101\Documents\C++\GameList.cpp:31: error: invalid conversion from `const char' to `const char*'
C:\Users\Alx101\Documents\C++\GameList.cpp:31: error: initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
C:\Users\Alx101\Documents\C++\GameList.cpp:32: error: expected `;' before '}' token
C:\Users\Alx101\Documents\C++\GameList.cpp:36: error: could not convert `((*&iter) <unknown operator> ((const __gnu_cxx::__normal_iterator<const std::string*, std::vector<std::string, std::allocator<std::string> > >&)(&__normal_iterator<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >*,std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >(((const __gnu_cxx::__normal_iterator<std::string*, std::vector<std::string, std::allocator<std::string> > >&)((const __gnu_cxx::__normal_iterator<std::string*, std::vector<std::string, std::allocator<std::string> > >*)(&(&list)->std::vector<_Tp, _Alloc>::begin [with _Tp = std::string, _Alloc = std::allocator<std::string>]())))))))' to `bool'
C:\Users\Alx101\Documents\C++\GameList.cpp:36: error: expected `)' before ';' token
C:\Users\Alx101\Documents\C++\GameList.cpp:36: error: name lookup of `i' changed for new ISO `for' scoping
C:\Users\Alx101\Documents\C++\GameList.cpp:36: error: using obsolete binding at `i'
C:\Users\Alx101\Documents\C++\GameList.cpp:36: error: expected `;' before ')' token
C:\Users\Alx101\Documents\C++\GameList.cpp:44: error: no matching function for call to `std::vector<std::string, std::allocator<std::string> >::begin(int&)'
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_vector.h:314: note: candidates are: __gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> > std::vector<_Tp, _Alloc>::begin() [with _Tp = std::string, _Alloc = std::allocator<std::string>]
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_vector.h:322: note: __gnu_cxx::__normal_iterator<typename _Alloc::const_pointer, std::vector<_Tp, _Alloc> > std::vector<_Tp, _Alloc>::begin() const [with _Tp = std::string, _Alloc = std::allocator<std::string>]
C:\Users\Alx101\Documents\C++\GameList.cpp:45: error: no matching function for call to `std::vector<std::string, std::allocator<std::string> >::erase(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
C:/Dev-Cpp/include/c++/3.4.2/bits/vector.tcc:108: note: candidates are: typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = std::string, _Alloc = std::allocator<std::string>]
C:/Dev-Cpp/include/c++/3.4.2/bits/vector.tcc:120: note: typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = std::string, _Alloc = std::allocator<std::string>]
C:\Users\Alx101\Documents\C++\GameList.cpp:47: error: expected `)' before ';' token
C:\Users\Alx101\Documents\C++\GameList.cpp:47: error: expected primary-expression before ')' token
C:\Users\Alx101\Documents\C++\GameList.cpp:47: error: expected `;' before ')' token
C:\Users\Alx101\Documents\C++\GameList.cpp:55: error: expected primary-expression before "else"
C:\Users\Alx101\Documents\C++\GameList.cpp:55: error: expected `;' before "else"
C:\Users\Alx101\Documents\C++\GameList.cpp:60: error: expected primary-expression before "else"
C:\Users\Alx101\Documents\C++\GameList.cpp:60: error: expected `;' before "else"
Execution terminated
| |