/in/p1.cpp: In function 'bool consecutive(unsigned int)':
/in/p1.cpp:26:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (sum == num)return true;
~~~~^~~~~~
/in/p1.cpp:30:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (sum == num)return true;
~~~~^~~~~~
/in/p1.cpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (sum > num)break;
~~~~^~~~~
/in/p1.cpp: In function 'bool repeated(unsigned int)':
/in/p1.cpp:46:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i <= str.length() / 2; i++)
~~^~~~~~~~~~~~~~~~~~~
/in/p1.cpp:51:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = i; j < str.length(); j += i)
~~^~~~~~~~~~~~~~
/in/p1.cpp: In function 'bool divisor(unsigned int)':
/in/p1.cpp:67:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i <= num / 2; i++)
~~^~~~~~~~~~
/in/p1.cpp:71:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return sum == num;
~~~~^~~~~~
/in/p1.cpp: In function 'int main()':
/in/p1.cpp:103:36: warning: 'flag' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout << (flag ? "Pass" : "Fail") << endl;
^