Problem swayingflowers
User godex
Submission Time 2025-02-03 17:44:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swayingflowers.cpp: In function ‘int main()’:
swayingflowers.cpp:6:28: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
6 | int flowers, seconds; cin << flowers << seconds;
| ~~~ ^~ ~~~~~~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
swayingflowers.cpp:6:28: note: candidate: ‘operator<<(int, int)’ <built-in>
6 | int flowers, seconds; cin << flowers << seconds;
| ~~~~^~~~~~~~~~
swayingflowers.cpp:6:28: 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/bits/basic_string.h:48,
from /usr/include/c++/9/string:55,
from /usr/incl