0_0_39481423_10891.cpp:9:8: error: 'ANS' was not declared in this scope
9 | vector<ANS>v;
| ^~~
0_0_39481423_10891.cpp:9:11: error: template argument 1 is invalid
9 | vector<ANS>v;
| ^
0_0_39481423_10891.cpp:9:11: error: template argument 2 is invalid
0_0_39481423_10891.cpp: In function 'int main()':
0_0_39481423_10891.cpp:39:19: error: request for member 'clear' in 'v', which is of non-class type 'int'
39 | v.clear();
| ^~~~~
0_0_39481423_10891.cpp:52:27: error: request for member 'push_back' in 'v', which is of non-class type 'int'
52 | v.push_back(ANS(p[i],d[i]));
| ^~~~~~~~~
0_0_39481423_10891.cpp:54:24: error: request for member 'begin' in 'v', which is of non-class type 'int'
54 | sort(v.begin(),v.end());
| ^~~~~
0_0_39481423_10891.cpp:54:34: error: request for member 'end' in 'v', which is of non-class type 'int'
54 | sort(v.begin(),v.end());
| ^~~
0_0_39481423_10891.cpp:55:33: error: request for member 'size' in 'v', which is of non-class type 'int'
55 | printf("%d\n",v.size());
| ^~~~
0_0_39481423_10891.cpp:56:33: error: request for member 'size' in 'v', which is of non-class type 'int'
56 | for(int i=0;i<v.size();i++)
| ^~~~
0_0_39481423_10891.cpp:57:37: error: invalid types 'int[int]' for array subscript
57 | printf("%d %d\n",v[i].p,v[i].d);
| ^
0_0_39481423_10891.cpp:57:44: error: invalid types 'int[int]' for array subscript
57 | printf("%d %d\n",v[i].p,v[i].d);
| ^
|