Problem typoswap
User elsatanyixin
Submission Time 2026-03-07 10:54:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typoswap.cpp: In function ‘int main()’:
typoswap.cpp:6:7: error: no match for ‘operator[]’ (operand types are ‘<unresolved overloaded function type>’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
6 | swap [a,b];
| ^