Problem swords
User nutzzzz
Submission Time 2025-01-21 20:47:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:44:24: error: conversion from ‘std::map<int, int>::mapped_type’ {aka ‘int’} to non-scalar type ‘std::pair<int, int>’ requested
44 | pair<int,int> p = a[i];
| ^