Problem monsters
User SMILE
Submission Time 2025-04-05 11:15:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

monsters.cpp: In function ‘int main()’:
monsters.cpp:8:15: error: ‘i’ was not declared in this scope
8 | long long a[i], b[i];
| ^
monsters.cpp:10:10: error: ‘a’ was not declared in this scope
10 | cin>>a[i]>>b[i];
| ^
monsters.cpp:10:16: error: ‘b’ was not declared in this scope
10 | cin>>a[i]>>b[i];
| ^
monsters.cpp:14:56: error: ‘data_type’ was not declared in this scope
14 | priority_queue<long long, vector<long long>, greater<data_type> > v;
| ^~~~~~~~~
monsters.cpp:14:65: error: template argument 1 is invalid
14 | priority_queue<long long, vector<long long>, greater<data_type> > v;
| ^
monsters.cpp:14:67: error: template argument 3 is invalid
14 | prior