Main.cc: In function ‘int main()’: Main.cc:11:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d%d",srt[i],end[i]); ~~~~~~ ^ Main.cc:11:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] Main.cc:15:23: error: expected ‘;’ before ‘<’ token for(int j=srt[i]-1,j