Problem typo
User Usu
Submission Time 2025-07-12 22:45:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typo.cpp: In function ‘int main()’:
typo.cpp:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if(chara == f){
| ^
typo.cpp:23:45: error: expected primary-expression before ‘=’ token
23 | while (v.back()==a.back() and v.size()!== 0) {
| ^
typo.cpp:27:8: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
27 | if (v.size == 0) {
| ~~^~~~
| ()
typo.cpp:33:16: error: expected primary-expression before ‘=’ token
33 | if (v.back !== a.back){
| ^
typo.cpp:37:15: error: invalid use of non-static member function ‘void std::vector<_Tp, _Alloc>::pop_back()