/in/foo.cc:5:21: error: array bound is not an integer constant before ']' token
long long N,arr[maxn];
^
/in/foo.cc:6:15: error: array bound is not an integer constant before ']' token
bool map1[maxn];
^
/in/foo.cc: In function 'bool comp(long long int, long long int)':
/in/foo.cc:9:7: error: 'map1' was not declared in this scope
if(!(map1[A]^map1[B])) return A < B;
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:17:3: error: 'map1' was not declared in this scope
map1[m*m]=true;
^~~~
/in/foo.cc:23:17: error: 'arr' was not declared in this scope
scanf("%lld",&arr[i]);
^~~
/in/foo.cc:25:7: error: 'arr' was not declared in this scope
sort(arr,arr+N,comp);
^~~