carnival.cpp:25:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main () {
^
carnival.cpp: In function 'int main()':
carnival.cpp:32:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0; j<v.size(); j++) cout<<v[j]<<" ";
~^~~~~~~~~
carnival.cpp:36:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x==v.size()) {
~^~~~~~~~~~
carnival.cpp:47:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i=1; i<=n; i++)
^~~
carnival.cpp:49:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
cout<<endl;
^~~~