Problem race
User username
Submission Time 2023-11-23 22:15:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

race.cpp: In function ‘std::map<long long int, int> dfs(long long int, long long int, long long int, long long int)’:
race.cpp:19:35: error: conversion from ‘map<[...],int>’ to non-scalar type ‘map<[...],long long int>’ requested
19 | map<long long,long long> cur=dfs(i.first,x,depth+1,d+i.second);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
race.cpp:40:9: error: could not convert ‘res’ from ‘map<[...],long long int>’ to ‘map<[...],int>’
40 | return res;
| ^~~
| |
| map<[...],long long int>