Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Don't Use Boost
C++11
-pedantic
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
Exit Code:
0
Author
anonymous
over 4 years ago
C++
gcc 10.1.0
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
prog.cc: In function 'std::vector<std::vector<int> > interchange(std::vector<std::vector<int> >)':
prog.cc:9:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for (int i = 0; i < vect.size(); i++)
| ~~^~~~~~~~~~~~~
prog.cc:11:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for (int j = 0; j < vect[i].size(); j++)
| ~~^~~~~~~~~~~~~~~~