Problem guanine
User P55D2K
Submission Time 2023-04-19 17:18:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guanine.cpp: In function ‘int main()’:
guanine.cpp:30:61: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
30 | vector<string> instruction = split(instructions[i], " ");
| ^~~
| |
| const char*
guanine.cpp:4:39: note: initializing argument 2 of ‘std::vector<std::__cxx11::basic_string<char> > split(std::string, char)’
4 | vector<string> split(string str, char delimiter) {
| ~~~~~^~~~~~~~~
guanine.cpp:33:26: error: no match for ‘operator+=’ (operand types are ‘std::vector<std::__cxx11::basic_string<char> >’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_typ