/in/foo.cc: In function 'int main()':
/in/foo.cc:26:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<currentdirectory.size();i++)
~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:51:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if(directoryname.length()==x)
~~~~~~~~~~~~~~~~~~~~~~^~~
/in/foo.cc:53:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<currentdirectory.size();i++)
~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:56:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=i+1;j<currentdirectory.size();j++)
~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:12:14: warning: unused variable 'k' [-Wunused-variable]
int n,i,x,j,k;
^