fireworks.cpp: In function 'int main()':
fireworks.cpp:15:3: error: 'll' was not declared in this scope
ll ret = 0;
^
fireworks.cpp:16:32: error: 'ret' was not declared in this scope
for (int i = 1; i <= m; i++) ret += abs(v[m/2] - v[i]);
^
fireworks.cpp:17:27: error: 'ret' was not declared in this scope
return printf("%lld\n", ret), 0;
^
fireworks.cpp:6:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
fireworks.cpp:11:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &p[i], &v[i]);
^