lightningrod.cpp: In function 'int main()':
lightningrod.cpp:37:7: error: 'dq' was not declared in this scope
dq.push(mp(x, y));
^~
lightningrod.cpp:40:16: error: 'dq' was not declared in this scope
cout << (int)dq.size() << '\n';
^~
lightningrod.cpp:17:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("A.INP", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
lightningrod.cpp:18:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("A.OUT", "w", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~