carnival.cpp: In function 'int main()':
carnival.cpp:13:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
13 | for (int j=i;j<=N;j++) printf (" %d",j); puts(""); fflush(stdout);
| ^~~
carnival.cpp:13:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
13 | for (int j=i;j<=N;j++) printf (" %d",j); puts(""); fflush(stdout);
| ^~~~
carnival.cpp:30:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for (int i=m;i<pos.size();i++) printf (" %d",pos[i]);
| ~^~~~~~~~~~~
carnival.cpp:25:30: warning: unused variable 'a' [-Wunused-variable]
25 | int l = 0, r = pos.size(), a = pos.size();
| ^
carnival.cpp:41:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
41 | for (int i=1;i<=N;i++) printf (" %d",col[i]); puts(""); fflush(stdout);
| ^~~
carnival.cpp:41:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
41 | for (int i=1;i<=N;i++) printf (" %d",col[i]); puts(""); fflush(stdout);
| ^~~~
carnival.cpp:10:15: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | int N; scanf ("%d",&N);
| ~~~~~~^~~~~~~~~
carnival.cpp:14:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf ("%d",num+i);
| ~~~~~~^~~~~~~~~~~~
carnival.cpp:33:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | int c; scanf ("%d",&c);
| ~~~~~~^~~~~~~~~