Problem | numberbuilding |
---|---|
User | NoobMugger420 |
Submission Time | 2024-12-09 11:27:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
numberbuilding.cpp:2:7: error: invalid preprocessing directive #Start
2 | # Start with the number x = 0
| ^~~~~
numberbuilding.cpp:5:7: error: invalid preprocessing directive #Loop
5 | # Loop through digits 9 to 1 (we want to prioritize larger digits first)
| ^~~~
numberbuilding.cpp:9:11: error: invalid preprocessing directive #While
9 | # While we can afford the cost of this digit, add it to the number
| ^~~~~
numberbuilding.cpp:11:24: error: stray ‘#’ in program
11 | N -= cost # Deduct the cost from the budget
| ^
numberbuilding.cpp:12:33: error: stray ‘#’ in program
12 | x = 10 * x + digit # Append the digit to the number
| ^
numberbuilding.cpp:14:7: error: invalid preprocessing directive #Output
14 | # Output the final result
| ^~~~~~
numberbuild