Problem sumint
User ZheKai
Submission Time 2025-02-15 09:35:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp:1:19: error: stray ‘#’ in program
1 | d = int(input()) # Get the number of days from the user
| ^
sumint.cpp:2:50: error: stray ‘#’ in program
2 | meows_per_day = list(map(int, input().split())) # Get the meows for each day
| ^
sumint.cpp:4:35: error: stray ‘#’ in program
4 | total_meows = sum(meows_per_day) # Calculate the total meows
| ^
sumint.cpp:6:21: error: stray ‘#’ in program
6 | print(total_meows) # Print the total meows
| ^
sumint.cpp:1:1: error: ‘d’ does not name a type
1 | d = int(input()) # Get the number of days from the user
| ^