运行 ID: 31769

Main.cc:3:7: error: ‘MAXN’ was not declared in this scope
 int a[MAXN],b[MAXN];
       ^~~~
Main.cc:3:7: note: suggested alternative: ‘NAN’
 int a[MAXN],b[MAXN];
       ^~~~
       NAN
Main.cc:3:15: error: ‘MAXN’ was not declared in this scope
 int a[MAXN],b[MAXN];
               ^~~~
Main.cc:3:15: note: suggested alternative: ‘NAN’
 int a[MAXN],b[MAXN];
               ^~~~
               NAN
Main.cc: In function ‘int main()’:
Main.cc:9:8: error: ‘a’ was not declared in this scope
   cin>>a[i];
        ^
Main.cc:10:3: error: ‘b’ was not declared in this scope
   b[i]=b[i-1]+a[i];
   ^
Main.cc:13:9: error: ‘b’ was not declared in this scope
   cout<