balancedtree.cpp: In function 'void solve()':
balancedtree.cpp:54:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=a;i++) printf("0 "); printf("\n");
^~~
balancedtree.cpp:54:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int i=1;i<=a;i++) printf("0 "); printf("\n");
^~~~~~
balancedtree.cpp:45:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a);
~~~~~^~~~~~~~~
balancedtree.cpp:47:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&j,&k);
~~~~~^~~~~~~~~~~~~~~
balancedtree.cpp:51:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=a;i++) scanf("%d",&ar[i]);
~~~~~^~~~~~~~~~~~~
balancedtree.cpp: In function 'int main()':
balancedtree.cpp:65:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~