Problem card
User JoelToh
Submission Time 2026-02-13 16:00:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:26:38: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘std::ostream’ {aka ‘std::basic_ostream<char>’})
26 | cout << to_string(deck[k-1]) << " " << cout << to_string(deck[k]) << " " << cout << to_string(deck[k+1]);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~
| | |
| | basic_ostream<[...]>
| basic_ostream<[...]>
card.cpp:26:38: note: candidate: ‘operator<<(int, int)’ <built-in>
26 | cout << to_string(deck[k-1]) << " " << cout << to_string(deck[k]) << " " << cout << to_string(deck[k+1]);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
card.cpp:26:38: note: no known conversion for argument 2 from ‘std::ostream’