[SOLVED]
Hi,
I cannot figure out what is wrong with this picture
Code:
Alphabet = "ABCDEFG";
for (int i = 0; i < 3; i++)
cout << Alphabet[rand() % Alphabet.length()] << endl;
I get
Code:
g++ -DPACKAGE_NAME=\"InCoM\" -DPACKAGE_TARNAME=\"incom\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"InCoM\ 0.01\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"incom\" -DVERSION=\"0.01\" -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_BOOST_FILESYSTEM=/\*\*/ -DHAVE_BOOST_PROGRAM_OPTIONS=/\*\*/ -I. -I../../src/include -I/usr/include -std=c++0x -O3 -MT InCoM-InCoM.o -MD -MP -MF .deps/InCoM-InCoM.Tpo -c -o InCoM-InCoM.o `test -f 'InCoM.cpp' || echo './'`InCoM.cpp
In file included from InCoM.cpp:35:0:
../../src/include/Utility/StrToOcc.hpp: In instantiation of ‘std::string sto::StrToVec<Tint>::GetRandom(Tint) [with Tint = int; std::string = std::basic_string<char>]’:
../../src/include/Utility/StrToOcc.hpp:220:54: required from ‘void sto::StrToVec<Tint>::MakeOccVector(const string&) [with Tint = int; std::string = std::basic_string<char>]’
InCoM.cpp:156:37: required from here
../../src/include/Utility/StrToOcc.hpp:331:7: error: no match for call to ‘(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >) ()’
cout << Alphabet[rand() % Alphabet.length()] << endl;
^
make[1]: *** [InCoM-InCoM.o] Error 1
It was working a minute ago and now...
and then I accidentally erased std namespace ....
SORRY FOR WASTING TIME