Problem | race |
---|---|
User | AlphanumericUsername |
Submission Time | 2024-03-17 12:58:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
race.cpp: In function ‘void dfs(long long int, long long int)’:
race.cpp:177:13: error: ‘i’ was not declared in this scope
177 | if (s[i][ne]) ans = min(ans, s[i][ne] + off[node].second + off[to].second + x.second);
| ^
race.cpp:181:13: error: ‘i’ was not declared in this scope
181 | if (s[i][ne]) s[i][ne]=min(s[i][ne],x.second+off[it].second-off[i].second);
| ^
race.cpp:181:55: error: no match for ‘operator[]’ (operand types are ‘std::pair<long long int, long long int> [200005]’ and ‘std::pair<long long int, long long int>’)
181 | if (s[i][ne]) s[i][ne]=min(s[i][ne],x.second+off[it].second-off[i].second);
| ^
race.cpp:182:33: error: no match for ‘operator[]’ (operand types are ‘std::pair<long long int, long long int> [200005]’ and ‘std::pair<long long int, long long int>’)
182 | else s[i][ne]=x.second+o