brunhilda.cpp:5:9: error: 'MAXN2' was not declared in this scope
int arr[MAXN2];
^~~~~
brunhilda.cpp:5:9: note: suggested alternative: 'MAXN'
int arr[MAXN2];
^~~~~
MAXN
brunhilda.cpp: In function 'int main()':
brunhilda.cpp:12:14: error: 'arr' was not declared in this scope
cin>>arr[i];
^~~
brunhilda.cpp:14:19: error: 'arr' was not declared in this scope
for(int i=0;i<arr[n];i++){
^~~
brunhilda.cpp:17:15: error: 'arr' was not declared in this scope
for(int i=arr[n];i<MAXN;i++){
^~~
brunhilda.cpp:21:19: error: 'arr' was not declared in this scope
for(int j=arr[i]-1;j<MAXN;j+=arr[i]){
^~~
brunhilda.cpp:30:15: error: 'arr' was not declared in this scope
for(int i=arr[n];i<MAXN;i++){
^~~