scrivener.cpp:26:2: error: expected ';' after struct definition
26 | }
| ^
| ;
scrivener.cpp: In member function 'std::string Try::get()':
scrivener.cpp:23:35: error: could not convert '((Try*)this)->Try::chr' from 'char' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
23 | if(parent == NULL) return chr;
| ^~~
| |
| char
scrivener.cpp: In function 'void UndoCommands(int)':
scrivener.cpp:38:22: error: 'L' was not declared in this scope
38 | tries[i]=new Try(L, tries[i-U-1]);
| ^
scrivener.cpp: In function 'char GetLetter(int)':
scrivener.cpp:42:32: error: expected ';' before '}' token
42 | return tries[i-1]->get()[P]
| ^
| ;
43 | }
| ~