Main.cc: In function 'int main()':
Main.cc:17:12: error: a function-definition is not allowed here before '{' token
int main (){
^
Main.cc:6:8: warning: unused variable 'sum' [-Wunused-variable]
int n,sum = 0;
^
Main.cc:8:14: warning: unused variable 'b' [-Wunused-variable]
int a[1001],b[1001];
^
Main.cc:43:1: error: expected '}' at end of input
}
^