Problem archaeologist
User PlayVoltz
Submission Time 2024-02-28 14:38:00
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:32:20: error: conversion from ‘pair<[...],std::vector<int>>’ to non-scalar type ‘pair<[...],int>’ requested
32 | pii res=take_path(min_element(paths.begin(), paths.end())-paths.begin());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
archaeologist.cpp:9:12: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘int’)
9 | #define se second
| ^~~~~~
archaeologist.cpp:34:13: note: in expansion of macro ‘se’
34 | 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/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::o