Problem giselle
User Dolphy
Submission Time 2024-12-21 19:05:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

giselle.cpp: In function ‘void dfs(long long int, long long int)’:
giselle.cpp:14:34: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
14 | return {m[x].size(), m[x]};
| ^
giselle.cpp:17:41: error: conversion from ‘void’ to non-scalar type ‘std::pair<long long int, std::map<long long int, long long int> >’ requested
17 | pair <int, map<int, int> > p=dfs(it, x);
| ~~~^~~~~~~
giselle.cpp:41:30: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
41 | return {m[x].size(), m[x]};
| ^