Problem explosion
User yay
Submission Time 2026-06-21 12:57:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

explosion.cpp: In function ‘int main()’:
explosion.cpp:13:9: error: ‘arr’ was not declared in this scope
13 | arr.push_back({dist, i+1});
| ^~~
explosion.cpp:15:19: error: ‘struct std::pair<long long int, int>’ has no member named ‘end’
15 | sort(vec, vec.end());
| ^~~
explosion.cpp:17:20: error: no match for ‘operator[]’ (operand types are ‘std::pair<long long int, int>’ and ‘int’)
17 | cout << vec[i].second << " ";
| ^