Problem | gentlepairs |
---|---|
User | Hytoh |
Submission Time | 2023-12-06 15:21:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gentlepairs.cpp: In function ‘int main()’:
gentlepairs.cpp:14:13: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘second’
14 | if (abs(a.second[j] - a.second[i]) / abs(a.first[j] - a.first[i]) >= -1 && abs(a.second[j] - a.second[i]) / abs(a.first[j] - a.first[i]) <= 1) {
| ^~~~~~
gentlepairs.cpp:14:27: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘second’
14 | if (abs(a.second[j] - a.second[i]) / abs(a.first[j] - a.first[i]) >= -1 && abs(a.second[j] - a.second[i]) / abs(a.first[j] - a.first[i]) <= 1) {
| ^~~~~~
gentlepairs.cpp:14:46: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
14 | if (abs(a.second[j] - a.second[i]) / abs(a.first[j] - a.first[i]) >= -1 && abs(a.second[j] - a.second[i]) / abs(a.first[j] - a.first[i]) <= 1) {
|