/in/p1.cpp: In function 'std::__cxx11::string FN(unsigned int)':
/in/p1.cpp:17:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=-1; fab(i)<=n; i++)
~~~~~~^~~
/in/p1.cpp:18:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(fab(i+1)==n) return "Pass\n";
~~~~~~~~^~~
/in/p1.cpp: In function 'std::__cxx11::string SOCS(unsigned int)':
/in/p1.cpp:29:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (sn(i)<n)
~~~~~^~
/in/p1.cpp:34:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (sn(i)-sn(j)==n) return "Pass\n";
~~~~~~~~~~~^~~
/in/p1.cpp:35:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (sn(i)-sn(j)>n) j++;
~~~~~~~~~~~^~
/in/p1.cpp: In function 'std::__cxx11::string RN(unsigned int)':
/in/p1.cpp:43:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=1;i<=str.length()/2;i++){
~^~~~~~~~~~~~~~~~
/in/p1.cpp:47:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k=i;j+k<str.length();k+=i)
~~~^~~~~~~~~~~~~
/in/p1.cpp:51:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count==str.length()-i) {
~~~~~^~~~~~~~~~~~~~~~
/in/p1.cpp: In function 'std::__cxx11::string DSN(unsigned int)':
/in/p1.cpp:65:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (total==n-1&&n!=1) return "Pass\n";
~~~~~^~~~~
/in/p1.cpp: In function 'int fab(int)':
/in/p1.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^