Problem | twochoices |
---|---|
User | PrunJuice |
Submission Time | 2024-12-07 11:48:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
twochoices.cpp: In function ‘int main()’:
twochoices.cpp:9:9: error: conflicting declaration ‘int a’
9 | int a = 0;
| ^
twochoices.cpp:7:12: note: previous declaration as ‘std::string a’
7 | string a, b;
| ^
twochoices.cpp:10:9: error: conflicting declaration ‘int b’
10 | int b = 0;
| ^
twochoices.cpp:7:15: note: previous declaration as ‘std::string b’
7 | string a, b;
| ^
twochoices.cpp:29:11: error: no match for ‘operator==’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
29 | if (a == c || a == d || b == c || b == d){
| ~ ^~ ~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h: