Problem lightningrod
User Shadowsocks
Submission Time 2023-02-15 22:48:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:17:53: error: expected primary-expression before ‘)’ token
17 | sort(co.begin(), co.end(), greater<pair<ll, ll>>);
| ^
lightningrod.cpp:20:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | ans++;
| ^~~
| abs
lightningrod.cpp:35:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
35 | ans++;
| ^~~
| abs
lightningrod.cpp:42:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
42 | cout << ans;
| ^~~
| abs