Run id: 5297
Main.cc:7:9: error: 'i' was not declared in this scope
int n,a[i];
^
Main.cc: In function 'int main()':
Main.cc:9:10: error: 'int main()' redeclared as different kind of symbol
int main(){
^
Main.cc:8:5: error: previous declaration of 'int main'
int main;
^
Main.cc:10:10: error: 'm' was not declared in this scope
cin>>m;
^
Main.cc:12:14: error: 'a' was not declared in this scope
cin>>a[i];
^
Main.cc:16:5: error: expected ',' or ';' before 'int'
int m
^
Main.cc:17:17: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++){
^
Main.cc:17:25: error: expected ';' before ')' token
for(int i=1;i<=n;i++){
^
Main.cc:20:11: error: 'no' was not declared in this scope
cout<<no<<endl;
^
Main.cc:15:9: warning: unused variable 'maxn' [-Wunused-variable]
int maxn=0
^