Language
C++
Compiler
gcc 11.1.0
Options
Warnings
Boost 1.76.0
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.76.0/gcc-11.1.0/include -std=c++17
0
Exit Code:
0
Author
anonymous
over 3 years ago
C++
gcc 11.1.0
Author
anonymous
over 3 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.76.0/gcc-11.1.0/include -std=c++17
prog.cc: In function 'bool commonValues(char*, std::size_t, char*, std::size_t)':
prog.cc:6:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'long unsigned int'} [-Wsign-compare]
6 | for (int i = 0; i < M; i++){//M USED HERE
| ~~^~~
prog.cc:7:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'long unsigned int'} [-Wsign-compare]
7 | for(int j = 0; j < N; j++){//N USED HERE
| ~~^~~
0