politicaldevelopment.cpp: In function 'bool check(std::vector<int>)':
politicaldevelopment.cpp:34:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<a.size();i++)
~^~~~~~~~~
politicaldevelopment.cpp:35:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=i+1;j<a.size();j++)
~^~~~~~~~~
politicaldevelopment.cpp:34:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<a.size();i++)
^~~
politicaldevelopment.cpp:39:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
return 1;
^~~~~~
politicaldevelopment.cpp: In function 'int main()':
politicaldevelopment.cpp:60:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<p.size();i++)
~^~~~~~~~~
politicaldevelopment.cpp:73:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<pol[t-1].size() && i<n;i++)
~^~~~~~~~~~~~~~~~
politicaldevelopment.cpp:77:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<pol[t-1][i].size();j++)
~^~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:79:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<pol[t-1][i].size() && j<n;j++)
~^~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:81:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int x=0;x<g[pol[t-1][i].back()].size();x++)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:87:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int y=0;y<pol[t-1][i].size()-1;y++)
~^~~~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:102:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<pol[t-1][i].size();j++)
~^~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:113:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<pol[t-1].size() && i<n;i++)
~^~~~~~~~~~~~~~~~
politicaldevelopment.cpp:117:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<pol[t-1][i].size();j++)
~^~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:119:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<pol[t-1][i].size() && j<n/10;j++)
~^~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:121:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int x=0;x<g[pol[t-1][i].back()].size();x++)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:127:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int y=0;y<pol[t-1][i].size()-1;y++)
~^~~~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:142:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<pol[t-1][i].size();j++)
~^~~~~~~~~~~~~~~~~~~
politicaldevelopment.cpp:52:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&to);
~~~~~^~~~~~~~~~