foo.cc: In function 'int main()':
foo.cc:25:14: error: 'i' does not name a type
register i,j;
^
foo.cc:27:6: error: 'i' was not declared in this scope
for(i=1;i<=N;i++)
^
foo.cc:31:6: error: 'i' was not declared in this scope
for(i=1;i<=N;i++)
^
foo.cc:33:6: error: 'i' was not declared in this scope
for(i=1;i<=N;i++){
^
foo.cc:34:7: error: 'j' was not declared in this scope
for(j=ma[i-1];j>=0;j--){
^
foo.cc:41:6: error: 'i' was not declared in this scope
for(i=ma[N];i;i--){
^
[Hydro](https://hydro.ac)提供评测服务