Problem summarising2020
User Schoolpurposes
Submission Time 2025-02-13 15:59:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

summarising2020.cpp:5:7: error: invalid preprocessing directive #Create
5 | # Create a list of available numbers from 1 to N
| ^~~~~~
summarising2020.cpp:13:7: error: invalid preprocessing directive #For
13 | # For each number in A, find its lexicographical position in the remaining available numbers
| ^~~
summarising2020.cpp:23:29: error: stray ‘#’ in program
23 | available.pop(idx) # Remove the number from the available list
| ^
summarising2020.cpp:37:7: error: invalid preprocessing directive #For
37 | # For each position, find the number corresponding to the index in X
| ^~~
summarising2020.cpp:45:44: error: stray ‘#’ in program
45 | result.append(available.pop(idx)) # Get the element and remove from available list
| ^
summarising2020.cpp:47:20: error: stray ‘#’ in program