Problem | typoswap |
---|---|
User | Javel17 |
Submission Time | 2024-06-21 13:56:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typoswap.cpp: In function ‘int main()’:
typoswap.cpp:6:17: error: expected ‘;’ before ‘<’ token
6 | for (int i=0, i<s.lenth()-1; i++){
| ^
| ;
typoswap.cpp:6:17: error: expected primary-expression before ‘<’ token
typoswap.cpp:6:20: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘lenth’; did you mean ‘length’?
6 | for (int i=0, i<s.lenth()-1; i++){
| ^~~~~
| length
typoswap.cpp:11:10: error: expected ‘;’ before ‘:’ token
11 | return 0:
| ^
| ;
typoswap.cpp:11:10: error: expected primary-expression before ‘:’ token