Main.cc: In function 'int main()':
Main.cc:5:5: error: expected ',' or ';' before 'int'
int m,s=0;
^
Main.cc:6:14: error: 'm' was not declared in this scope
cin>>m;
^
Main.cc:8:12: error: 's' was not declared in this scope
s=0;
^
Main.cc:10:32: error: expected ';' before ')' token
for(int i=1;i<=m;i++){
^
Main.cc:4:9: warning: unused variable 'a' [-Wunused-variable]
int a[101]={}
^