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

Compile Error

archaeologist.cpp: In function ‘void archaeologist(long long int, long long int, long long int, std::vector<long long int>, long long int, std::vector<long long int>)’:
archaeologist.cpp:33:20: error: conversion from ‘pair<int,std::vector<int>>’ to non-scalar type ‘pair<long long int,long long int>’ requested
33 | pii res=take_path(min_element(paths.begin(), paths.end())-paths.begin());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
archaeologist.cpp:10:12: error: no match for ‘operator=’ (operand types are ‘std::vector<long long int>’ and ‘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:
/usr/include/c++/9/bits/vect