Problem packingducks
User zhangdi
Submission Time 2025-08-24 12:27:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

packingducks.cpp: In function ‘int32_t main()’:
packingducks.cpp:22:8: error: no match for ‘operator%=’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘int’)
22 | cout<<k%=1000000007;
| ~~~~~~~^~~~~~~~~~~~