Problem | pancake_ex |
---|---|
User | bribritt |
Submission Time | 2023-12-14 16:02:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pancake_ex.cpp: In function ‘int main()’:
pancake_ex.cpp:10:28: error: no match for ‘operator+=’ (operand types are ‘bsi’ {aka ‘std::vector<int>’} and ‘int’)
10 | for(int i=0;i<MAXN;i++) st+=i;
| ~~^~~
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,