fireworks.cpp: In function 'int main()':
fireworks.cpp:23:15: error: 'x' was not declared in this scope
23 | sort(all(adj[x]), cmp);
| ^
fireworks.cpp:7:16: note: in definition of macro 'all'
7 | #define all(v) v.begin(), v.end()
| ^
fireworks.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
fireworks.cpp:17:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d%d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~