Problem pairs
User VNHbest
Submission Time 2025-11-17 00:25:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pairs.cpp: In function ‘long long int counter(long long int)’:
pairs.cpp:7:24: error: ‘n’ was not declared in this scope
7 | for (ll i = 0; i < n; i++) {
| ^
pairs.cpp:8:13: error: ‘vec’ was not declared in this scope
8 | if (vec[i] == 0) {
| ^~~
pairs.cpp:12:28: error: ‘vec’ was not declared in this scope
12 | ll a = upper_bound(vec.begin(), vec.end(), mid / vec[i]) - vec.begin();
| ^~~