You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some errors in codes which will cause compile error. I tried GCC 4.2.1 and 6.2.0 and will both get the problems. This problem caused by 2 code errors.
First is the 2D STL-Vector initial commands. change the code std::vector < std::vector<SOMETHING> >( size1 , size2 )
into std::vector < std::vector<SOMETHING> > ( size1 , std::vector<SOMETHING>(size2) )
Second is the output part. In main.cpp, use "%s" to output a String value instead of Char* may cause problem. Also the "void main()" should change to "int main()" and add "return 0"
The text was updated successfully, but these errors were encountered:
There are some errors in codes which will cause compile error. I tried GCC 4.2.1 and 6.2.0 and will both get the problems. This problem caused by 2 code errors.
First is the 2D STL-Vector initial commands. change the code
std::vector < std::vector<SOMETHING> >( size1 , size2 )
into
std::vector < std::vector<SOMETHING> > ( size1 , std::vector<SOMETHING>(size2) )
Second is the output part. In main.cpp, use "%s" to output a String value instead of Char* may cause problem. Also the "void main()" should change to "int main()" and add "return 0"
The text was updated successfully, but these errors were encountered: