triangle.cpp:19:1: error: invalid use of template-name 'std::map' without an argument list
map x [N] , y [N] ;
^~~
triangle.cpp:19:1: note: class template argument deduction is only available with -std=c++1z or -std=gnu++1z
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:81,
from triangle.cpp:1:
/usr/include/c++/7/bits/stl_map.h:99:11: note: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map' declared here
class map
^~~
triangle.cpp:21:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
triangle.cpp: In function 'int main()':
triangle.cpp:27:3: error: 'x' was not declared in this scope
x[a[i].fr] ++ ;
^
triangle.cpp:28:3: error: 'y' was not declared in this scope
y[a[i].sc] ++ ;
^
triangle.cpp:33:7: error: 'x' was not declared in this scope
l = x[a[i].fr] -1 ;
^
triangle.cpp:34:7: error: 'y' was not declared in this scope
r = y[a[i].sc] -1 ;
^