Problem ring2
User beepbeepsheep
Submission Time 2026-02-23 10:05:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ring2.cpp: In member function ‘void node::solve()’:
ring2.cpp:130:35: error: conversion from ‘std::unordered_map<long long int, long long int>’ to non-scalar type ‘std::map<long long int, long long int>’ requested
130 | map<ll, ll> otherCounts = r -> counts;
| ~~~~~^~~~~~
ring2.cpp:132:29: error: no matching function for call to ‘swap(std::unordered_map<long long int, long long int>&, std::map<long long int, long long int>&)’
132 | swap(counts, otherCounts);
| ^
In file included from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from ring2.cpp:1:
/usr/include/c++/9/sstream:849:5: note: candidate: ‘template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_stringbuf&l