carnival.cpp: In function 'bool ask(std::vector<int>)':
carnival.cpp:9:18: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
9 | #define tr(ii,c) for(__typeof((c).begin()) ii=(c).begin();ii!=(c).end();ii++)
| ^~~
carnival.cpp:24:2: note: in expansion of macro 'tr'
24 | tr(it,v)printf("%d ",*it);cout<<endl;
| ^~
carnival.cpp:24:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
24 | tr(it,v)printf("%d ",*it);cout<<endl;
| ^~~~
carnival.cpp: In function 'int main()':
carnival.cpp:9:18: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
9 | #define tr(ii,c) for(__typeof((c).begin()) ii=(c).begin();ii!=(c).end();ii++)
| ^~~
carnival.cpp:34:6: note: in expansion of macro 'tr'
34 | tr(it,v)found|=(*it==i);if(found)continue;
| ^~
carnival.cpp:34:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
34 | tr(it,v)found|=(*it==i);if(found)continue;
| ^~
carnival.cpp:9:18: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
9 | #define tr(ii,c) for(__typeof((c).begin()) ii=(c).begin();ii!=(c).end();ii++)
| ^~~
carnival.cpp:37:6: note: in expansion of macro 'tr'
37 | tr(it,v)if(*it<i)a.pb(*it);a.pb(i);
| ^~
carnival.cpp:37:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
37 | tr(it,v)if(*it<i)a.pb(*it);a.pb(i);
| ^
carnival.cpp:47:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
47 | if(ask(c))st--;adj[a[st]].pb(i);
| ^~
carnival.cpp:47:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
47 | if(ask(c))st--;adj[a[st]].pb(i);
| ^~~
carnival.cpp:58:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
58 | if(ask(c))en++;adj[b[en]].pb(i);
| ^~
carnival.cpp:58:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
58 | if(ask(c))en++;adj[b[en]].pb(i);
| ^~~
carnival.cpp:64:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
64 | for(int i=1;i<=n;i++)printf("%d ",arr[i]);cout<<endl;
| ^~~
carnival.cpp:64:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
64 | for(int i=1;i<=n;i++)printf("%d ",arr[i]);cout<<endl;
| ^~~~
carnival.cpp: In function 'bool ask(std::vector<int>)':
carnival.cpp:25:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | int res;scanf("%d",&res);return (res==int(v.size()));
| ~~~~~^~~~~~~~~~~
carnival.cpp: In function 'int main()':
carnival.cpp:28:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | int n;scanf("%d",&n);
| ~~~~~^~~~~~~~~