Problem | stonk |
---|---|
User | UwU |
Submission Time | 2025-01-04 17:50:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
stonk.cpp:6:31: error: stray ‘#’ in program
6 | total_stonks += a[i] # Add stonks bought on day i
| ^
stonk.cpp:7:48: error: stray ‘#’ in program
7 | stonks_sold = min(total_stonks, b[i]) # Sell as many as possible at today's price
| ^
stonk.cpp:7:83: error: missing terminating ' character
7 | stonks_sold = min(total_stonks, b[i]) # Sell as many as possible at today's price
| ^~~~~~~~
stonk.cpp:8:45: error: stray ‘#’ in program
8 | total_profit += stonks_sold * b[i] # Calculate the profit
| ^
stonk.cpp:9:38: error: stray ‘#’ in program
9 | total_stonks -= stonks_sold # Update remaining stonks
| ^
stonk.cpp:13:3: