Problem pancake_ex
User bribritt
Submission Time 2023-12-14 16:03:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pancake_ex.cpp: In function ‘int main()’:
pancake_ex.cpp:15:34: error: conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type’ {aka ‘std::vector<int>’} to non-scalar type ‘std::__cxx11::basic_string<int>’ requested
15 | basic_string<int> jnew=s.front();
| ~~~~~~~^~
pancake_ex.cpp:17:23: error: no matching function for call to ‘std::map<std::vector<int>, int>::count(std::__cxx11::basic_string<int>&)’
17 | if(!dist.count(jnew)) {
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from pancake_ex.cpp:1:
/usr/include/c++/9/bits/stl_map.h:1214:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::count(const key_type&)