Problem swords
User bachnguyen123
Submission Time 2025-11-27 13:13:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:18:7: error: ‘a’ was not declared in this scope
18 | if(a[j].first >= a[i].first && a[j].second >= a[i].second)
| ^
swords.cpp:20:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | ans++;
| ^~~
| abs
swords.cpp:25:12: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
25 | cout<<n - ans;
| ^~~
| abs