Problem sonya
User chenweilian
Submission Time 2023-08-03 16:08:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sonya.cpp:2:1: error: ‘priority_queue’ does not name a type
2 | priority_queue<long long> q;
| ^~~~~~~~~~~~~~
sonya.cpp: In function ‘int main()’:
sonya.cpp:5:5: error: ‘scanf’ was not declared in this scope
5 | scanf("%d",&n);
| ^~~~~
sonya.cpp:11:9: error: ‘q’ was not declared in this scope
11 | q.push(x);
| ^
sonya.cpp:18:5: error: ‘printf’ was not declared in this scope
18 | printf("%lld\n",ans);
| ^~~~~~
sonya.cpp:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
+++ |+#include <cstdio>
1 | int n;