Problem ultimateifelse
User boomphcoding
Submission Time 2026-01-21 17:26:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:12:2: error: expected primary-expression before ‘)’ token
12 | )
| ^
ultimateifelse.cpp:34:8: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
34 | if (s.length == n){
| ~~^~~~~~
| ()
ultimateifelse.cpp:45:1: error: expected ‘}’ at end of input
45 | }
| ^
ultimateifelse.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^