Problem typoswap
User CheesyPasta
Submission Time 2025-02-14 16:09:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typoswap.cpp: In function ‘int main()’:
typoswap.cpp:6:14: error: ‘one’ was not declared in this scope; did you mean ‘clone’?
6 | string a=one;
| ^~~
| clone
typoswap.cpp:7:11: error: ‘two’ was not declared in this scope
7 | string b=two;
| ^~~
typoswap.cpp:8:11: error: ‘zero’ was not declared in this scope; did you mean ‘bzero’?
8 | string c=zero;
| ^~~~
| bzero
typoswap.cpp:12:6: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘const char [2]’)
12 | cout>>"a"<<"b"
| ~~~~^~~~~
| | |
| | const char [2]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from typoswap.cpp:1:
/usr/include/c++/9/cstddef:140:5: note: ca