strange_device.cpp: In function 'int main()':
strange_device.cpp:17:65: warning: left shift count >= width of type [-Wshift-count-overflow]
17 | cin >> N >> A >> B; ll MOD = A * B; if (MOD < 0) MOD = 1 << 60;
| ^~
strange_device.cpp:26:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int i = 0; i < E.size(); ) { ll NOW = E[i].f;
| ~~^~~~~~~~~~
strange_device.cpp:27:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | while (i < E.size() && E[i].f == NOW) cur += E[i++].s; ans++;
| ~~^~~~~~~~~~
strange_device.cpp:27:10: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
27 | while (i < E.size() && E[i].f == NOW) cur += E[i++].s; ans++;
| ^~~~~
strange_device.cpp:27:65: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
27 | while (i < E.size() && E[i].f == NOW) cur += E[i++].s; ans++;
| ^~~
strange_device.cpp:29:10: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
29 | if (prev > 0) ans += E[i - 1].f - PREV - 1; prev = cur; PREV = NOW;
| ^~
strange_device.cpp:29:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
29 | if (prev > 0) ans += E[i - 1].f - PREV - 1; prev = cur; PREV = NOW;
| ^~~~
strange_device.cpp:24:72: warning: unused variable 'NOW' [-Wunused-variable]
24 | sort(begin(E), end(E)); int prev = 0; int cur = 0; ll PREV = 0; ll NOW = 0;
| ^~~