gift.cpp:5:33: error: expected ',' or '...' before 'A'
5 | int construct(int n,int m,int[] A,int[] B,int[] C){
| ^
gift.cpp: In function 'int construct(int, int, int*)':
gift.cpp:7:32: error: 'C' was not declared in this scope
7 | for (int i(0);i < m;++i) if (C[i]==1) D[A[i]] = max(D[A[i]],B[i]);
| ^
gift.cpp:7:43: error: 'A' was not declared in this scope
7 | for (int i(0);i < m;++i) if (C[i]==1) D[A[i]] = max(D[A[i]],B[i]);
| ^
gift.cpp:7:63: error: 'B' was not declared in this scope
7 | for (int i(0);i < m;++i) if (C[i]==1) D[A[i]] = max(D[A[i]],B[i]);
| ^
gift.cpp:15:32: error: 'C' was not declared in this scope
15 | for (int i(0);i < m;++i) if (C[i]==2) if (acc[B[i]+1]-acc[A[i]]==0||acc[B[i]+1]-acc[A[i]]==B[i]-A[i]+1) cant = 1;
| ^
gift.cpp:15:49: error: 'B' was not declared in this scope
15 | for (int i(0);i < m;++i) if (C[i]==2) if (acc[B[i]+1]-acc[A[i]]==0||acc[B[i]+1]-acc[A[i]]==B[i]-A[i]+1) cant = 1;
| ^
gift.cpp:15:61: error: 'A' was not declared in this scope
15 | for (int i(0);i < m;++i) if (C[i]==2) if (acc[B[i]+1]-acc[A[i]]==0||acc[B[i]+1]-acc[A[i]]==B[i]-A[i]+1) cant = 1;
| ^