Problem souvenirs
User TheRaptor
Submission Time 2024-08-03 12:49:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

souvenirs.cpp: In function ‘void rem(int, int, int)’:
souvenirs.cpp:11:7: error: ‘class std::__cxx11::basic_string<std::pair<int, std::pair<int, int> > >’ has no member named ‘emplace_back’
11 | roll.emplace_back({arr[c],{pre[arr[c]],nxt[arr[c]]}});
| ^~~~~~~~~~~~
souvenirs.cpp:12:41: error: ‘class std::__cxx11::basic_string<int>’ has no member named ‘emplace_back’
12 | if(nxt[arr[c]]!=-1&&b!=-1) stuff[a][b].emplace_back(srt[nxt[arr[c]]].first-srt[arr[c]].first);
| ^~~~~~~~~~~~
souvenirs.cpp:13:41: error: ‘class std::__cxx11::basic_string<int>’ has no member named ‘emplace_back’
13 | if(pre[arr[c]]!=-1&&b!=-1) stuff[a][b].emplace_back(srt[arr[c]].first-srt[pre[arr[c]]].first);
| ^~~~~~~~~~~~
souvenirs.cpp: In function ‘int32_t main()’:
souvenirs.cpp:38:32: error: ‘class std::__cxx11::basic_string<std::pair&