Problem walking
User Josh28
Submission Time 2023-04-05 17:25:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

walking.cpp: In function ‘void solve()’:
walking.cpp:67:10: error: invalid types ‘std::pair<long double, long double> [n][ll {aka long double}]’ for array subscript
67 | arr[q] = MP(t1, t2);
| ^
walking.cpp:71:35: error: invalid types ‘long long int [n][ll {aka long double}]’ for array subscript
71 | for (ll q = 0; q < n; q++) {dp[q] = 1;}
| ^
walking.cpp:74:17: error: invalid types ‘std::pair<long double, long double> [n][ll {aka long double}]’ for array subscript
74 | if(l/arr[w].second + arr[w].first > l/arr[q].second + arr[q].first && arr[w].first < arr[q].first) {
| ^
walking.cpp:74:33: error: invalid types ‘std::pair<long double, long double> [n][ll {aka long double}]’ for array subscript
74 | if(l/arr[w].second + arr[w].first > l/arr[q].second + arr[q].first && arr[w].first < arr[q].first) {
|