Problem do_you_like_me
User Tolo925kt
Submission Time 2026-02-05 16:23:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

do_you_like_me.cpp: In function ‘int main()’:
do_you_like_me.cpp:5:7: error: conflicting declaration ‘char s’
5 | char s;
| ^
do_you_like_me.cpp:4:15: note: previous declaration as ‘std::string s’
4 | std::string s;
| ^
do_you_like_me.cpp:7:56: error: no match for ‘operator>>’ (operand types are ‘std::basic_ostream<char>’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
7 | cout << "Yes! I would love to go on a date with you, ">> s <<"";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ ~
| | |
| std::basic_ostream<char> std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/string:56,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c+