Problem heatwv
User SMILE
Submission Time 2026-05-01 21:45:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

heatwv.cpp: In function ‘int main()’:
heatwv.cpp:2:2: error: ‘ios_base’ has not been declared
2 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
heatwv.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin.tie(NULL);
| ^~~
heatwv.cpp:3:10: error: ‘NULL’ was not declared in this scope
3 | cin.tie(NULL);
| ^~~~
heatwv.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
+++ |+#include <cstddef>
1 | int main() {
heatwv.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<pair<int, int>> adj[n];
| ^~~~~~
heatwv.cpp:7:9: error: ‘pair’ was not declared in this scope
7 | vector<pair<int, int>> adj[n];
| ^~~~
heatwv.cpp:7:14: error: expected primary-expression before ‘int’
7 | vector<pair<int, int>> adj[n];
| ^~~