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