Main.cc: In function ‘int main()’: Main.cc:33:4: error: ‘inr’ was not declared in this scope inr cnt =0; ^~~ Main.cc:33:4: note: suggested alternative: ‘int’ inr cnt =0; ^~~ int Main.cc:90:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=] printf("%d\n",&ca); ~~~^ Main.cc:95:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=] if(fl)printf("%d ",&ansl); ~~~~~^ Main.cc:96:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=] if(fr)printf("%d ",&ansr); ~~~~~^ Main.cc:13:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ~~~~~^~~~~~~~~ Main.cc:16:9: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ~~~~~^~~~~~~~~~~~