Problem | typoswap |
---|---|
User | akyy1713 |
Submission Time | 2025-06-16 20:47:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typoswap.cpp: In function ‘int main()’:
typoswap.cpp:5:10: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
5 | int A = "competitive";
| ^~~~~~~~~~~~~
| |
| const char*
typoswap.cpp:6:10: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
6 | int B = "programming";
| ^~~~~~~~~~~~~
| |
| const char*
typoswap.cpp:7:11: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘const char [2]’)
7 | cin >> A >> " " >> B
| ~~~~~~~~ ^~ ~~~
| | |
| | const char [2]
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/