Problem ultimateifelse
User xulang
Submission Time 2024-06-18 11:39:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:5:9: error: ‘str’ was not declared in this scope; did you mean ‘std’?
5 | int N; str S; cin << N << S;
| ^~~
| std
ultimateifelse.cpp:5:20: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
5 | int N; str S; cin << N << S;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
ultimateifelse.cpp:5:20: note: candidate: ‘operator<<(int, int)’ <built-in>
5 | int N; str S; cin << N << S;
| ~~~~^~~~
ultimateifelse.cpp:5:20: note: no known conversion for argument 1 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/regex:62,