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:25:2: note: in expansion of macro 'tr'
25 | tr(it,v)printf("%d ",*it);cout<<endl;
| ^~
carnival.cpp:25:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
25 | 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:40:6: note: in expansion of macro 'tr'
40 | tr(it,v)found|=(*it==i);if(found)continue;
| ^~
carnival.cpp:40:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
40 | 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:43:6: note: in expansion of macro 'tr'
43 | tr(it,v)if(*it<i)a.pb(*it);a.pb(i);
| ^~
carnival.cpp:43:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
43 | tr(it,v)if(*it<i)a.pb(*it);a.pb(i);
| ^
carnival.cpp:74:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
74 | for(int i=1;i<=n;i++)printf("%d ",arr[i]);cout<<endl;
| ^~~
carnival.cpp:74:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
74 | for(int i=1;i<=n;i++)printf("%d ",arr[i]);cout<<endl;
| ^~~~
carnival.cpp:76:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
76 | for(int i=1;i<n;i++)
| ^~~
carnival.cpp:79:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
79 | return 0;
| ^~~~~~
carnival.cpp: In function 'bool ask(std::vector<int>)':
carnival.cpp:27:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | int res;scanf("%d",&res);return (res==int(v.size()));
| ~~~~~^~~~~~~~~~~
carnival.cpp: In function 'int main()':
carnival.cpp:32:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
32 | scanf("%d",&n);
| ~~~~~^~~~~~~~~