| Problem | swords |
|---|---|
| User | bachnguyen123 |
| Submission Time | 2025-11-23 00:58:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:19:22: error: request for member ‘first’ in ‘d’, which is of non-class type ‘int’
19 | if(a[i].first <= d.first && a[i].second <= d.second) count++;
| ^~~~~
swords.cpp:19:48: error: request for member ‘second’ in ‘d’, which is of non-class type ‘int’
19 | if(a[i].first <= d.first && a[i].second <= d.second) count++;
| ^~~~~~
swords.cpp:19:61: error: no post-increment operator for type
19 | if(a[i].first <= d.first && a[i].second <= d.second) count++;
| ^~
swords.cpp:21:9: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator-’
21 | cout<<n-count;
| ~^~~~~~