Problem | eatingparallelograms |
---|---|
User | blackpanther |
Submission Time | 2025-06-20 13:37:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eatingparallelograms.cpp: In function ‘int main()’:
eatingparallelograms.cpp:18:11: error: request for member ‘first’ in ‘v’, which is of non-class type ‘std::vector<std::pair<long long int, long long int> > [n]’
18 | cin>> v.first[i];
| ^~~~~
eatingparallelograms.cpp:19:16: error: ‘i’ was not declared in this scope
19 | }for (int j=0;i<j;j++){
| ^
eatingparallelograms.cpp:20:11: error: request for member ‘second’ in ‘v’, which is of non-class type ‘std::vector<std::pair<long long int, long long int> > [n]’
20 | cin>> v.second[j];
| ^~~~~~
eatingparallelograms.cpp:22:11: error: request for member ‘first’ in ‘v’, which is of non-class type ‘std::vector<std::pair<long long int, long long int> > [n]’
22 | cout<< v.first;
| ^~~~~