Problem | competition |
---|---|
User | Batigol |
Submission Time | 2024-01-12 10:19:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
competition.cpp: In function ‘int main()’:
competition.cpp:20:9: error: request for member ‘first’ in ‘diff’, which is of non-class type ‘std::pair<long long int, long long int> [n]’
20 | diff.first = i;
| ^~~~~
competition.cpp:21:9: error: request for member ‘second’ in ‘diff’, which is of non-class type ‘std::pair<long long int, long long int> [n]’
21 | diff.second = arr[i].first-arr[i].second;
| ^~~~~~