Problem | race |
---|---|
User | AlphanumericUsername |
Submission Time | 2024-03-17 12:59:44 |
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:181:64: 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[node][ne]) s[node][ne]=min(s[node][ne],x.second+off[it].second-off[node].second);
| ^
race.cpp:182:36: 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[node][ne]=x.second+off[it].second-off[node].second;
| ^
race.cpp: In function ‘long long int best_path(long long int, long long int, long long int (*)[2], long long int*)’:
race.cpp:191:5: error: ‘a’ was not declared in this scope
191 | a = h[i][0];
| ^
race.cpp:191:9: error: ‘h’ was not dec