Problem | walking |
---|---|
User | YSH2020 |
Submission Time | 2023-09-11 11:44:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
walking.cpp: In function ‘int main()’:
walking.cpp:6:33: error: conflicting declaration ‘std::vector<std::pair<int, double> > l’
6 | vector <pair <int, double>> l;
| ^
walking.cpp:5:9: note: previous declaration as ‘int l’
5 | int l, n; cin >> l >> n;
| ^
walking.cpp:10:11: error: request for member ‘push_back’ in ‘l’, which is of non-class type ‘int’
10 | l.push_back(make_pair(x, ((double)l/(double)y)+x));
| ^~~~~~~~~
walking.cpp:11:14: error: request for member ‘begin’ in ‘l’, which is of non-class type ‘int’
11 | } sort(l.begin(), l.end());
| ^~~~~
walking.cpp:11:25: error: request for member ‘end’ in ‘l’, which is of non-class type ‘int’
11 | } sort(l.begin(), l.end());
| ^~~
walking.cpp:14:22: error: invalid types ‘int[int]’ for array subscrip