Main.cc:6:8: error: array bound is not an integer constant before ‘]’ token
6 | int a[N], b[N], pos[N];
| ^
Main.cc:6:14: error: array bound is not an integer constant before ‘]’ token
6 | int a[N], b[N], pos[N];
| ^
Main.cc:6:22: error: array bound is not an integer constant before ‘]’ token
6 | int a[N], b[N], pos[N];
| ^
Main.cc: In function ‘int main()’:
Main.cc:14:10: error: ‘a’ was not declared in this scope
14 | cin >> a[i];
| ^
Main.cc:16:10: error: ‘b’ was not declared in this scope
16 | cin >> b[i];
| ^
Main.cc:17:3: error: ‘pos’ was not declared in this scope
17 | pos[b[i]] = i;
| ^~~
Main.cc:20:6: error: ‘a’ was not declared in this scope
20 | if(a[i+1] == b[pos[a[i]]-1])
| ^
Main.cc:20:16: error: ‘b’ was not declared in this scope
20 | if(a[i+1] == b[pos[a[i]]-1])
| ^
Main.cc:20:18: error: ‘pos’ was not declared in this scope
20 | if(a[i+1] == b[pos[a[i]]-1])
| ^~~