Problem globalwarming
User Iceyfrost
Submission Time 2024-11-20 23:42:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

globalwarming.cpp:21:44: error: stray ‘#’ in program
21 | input_data = sys.stdin.read().strip() # Read input from standard input
| ^
globalwarming.cpp:22:42: error: stray ‘#’ in program
22 | n = int(input_data.splitlines()[0]) # First line gives the number of integers
| ^
globalwarming.cpp:23:57: error: stray ‘#’ in program
23 | altitudes = '\n'.join(input_data.splitlines()[1:]) # Remaining lines are the altitudes
| ^
globalwarming.cpp:24:43: error: stray ‘#’ in program
24 | result = globalwarming(n, altitudes) # Call the function with input
| ^
globalwarming.cpp:25:20: error: stray ‘#’ in program
25 | print(result) # Output the result
| ^
globalwarming.cpp:1:1: error: ‘def’