Problem archaeologist
User PlayVoltz
Submission Time 2024-02-28 14:41:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

archaeologist.cpp: In function ‘void archaeologist(int, int, int, std::vector<int>, int, std::vector<int>)’:
archaeologist.cpp:33:40: error: conversion from ‘pair<int,vector<int>>’ to non-scalar type ‘pair<long long int,vector<long long int>>’ requested
33 | pair<int, vector<int> > res=take_path((signed)(min_element(paths.begin(), paths.end())-paths.begin()));
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
archaeologist.cpp:10:12: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘std::vector<long long int>’)
10 | #define se second
| ^~~~~~
archaeologist.cpp:35:13: note: in expansion of macro ‘se’
35 | paths=res.se;
| ^~
In file included from /usr/include/c++/9/vector:72,
from archaeologist.h:2,
from archaeologist.cpp:1: