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