foo.cc:3:13: error: two or more data types in declaration of 'type name'
3 | using III = tuple<int,int,int>
| ^~~~~~~~~~~~~~~~~~
foo.cc:7:7: error: 'N' was not declared in this scope
7 | int q[N];
| ^
foo.cc:8:16: error: 'III' was not declared in this scope
8 | priority_queue<III> heap;
| ^~~
foo.cc:8:19: error: template argument 1 is invalid
8 | priority_queue<III> heap;
| ^
foo.cc:8:19: error: template argument 2 is invalid
foo.cc:8:19: error: template argument 3 is invalid
foo.cc: In function 'int main()':
foo.cc:15:24: error: 'q' was not declared in this scope
15 | cin >> q[i];
| ^
foo.cc:16:22: error: request for member 'push' in 'heap', which is of non-class type 'int'
16 | heap.push({q[i] - q[i - 1] + 1, q[i] - q[i - 1] + 1, 0});
| ^~~~
foo.cc:21:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
21 | auto [x,y,z] = heap.top();
| ^
foo.cc:21:37: error: request for member 'top' in 'heap', which is of non-class type 'int'
21 | auto [x,y,z] = heap.top();
| ^~~
foo.cc:22:22: error: request for member 'pop' in 'heap', which is of non-class type 'int'
22 | heap.pop();
| ^~~
foo.cc:25:22: error: request for member 'push' in 'heap', which is of non-class type 'int'
25 | heap.push({x,y,z});
| ^~~~
foo.cc:27:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
27 | auto [x,y,z] = heap.top();
| ^
foo.cc:27:29: error: request for member 'top' in 'heap', which is of non-class type 'int'
27 | auto [x,y,z] = heap.top();
| ^~~
[Hydro](https://hydro.ac)提供评测服务