Problem | missingnumber |
---|---|
User | FadedWorld |
Submission Time | 2024-08-11 17:41:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
missingnumber.cpp:1:3: error: invalid preprocessing directive #Read
1 | # Read the value of n
| ^~~~
missingnumber.cpp:4:3: error: invalid preprocessing directive #Read
4 | # Read the n-1 numbers and calculate their sum
| ^~~~
missingnumber.cpp:8:3: error: invalid preprocessing directive #Calculate
8 | # Calculate the expected sum of numbers from 1 to n
| ^~~~~~~~~
missingnumber.cpp:11:3: error: invalid preprocessing directive #The
11 | # The missing number is the difference
| ^~~
missingnumber.cpp:14:3: error: invalid preprocessing directive #Print
14 | # Print the missing number
| ^~~~~
missingnumber.cpp:2:1: error: ānā does not name a type
2 | n = int(input())
| ^