gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:15:42: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
15 | while (a + 1 < b && num_examined < n)
| ~~~~~~~~~~~~~^~~
gap.cpp:17:30: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
17 | if (num_examined == n - 1)
| ~~~~~~~~~~~~~^~~~~~~~
gap.cpp:29:30: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
29 | if (num_examined == n)
| ~~~~~~~~~~~~~^~~~
gap.cpp:40:1: warning: control reaches end of non-void function [-Wreturn-type]
40 | }
| ^