Problem photo
User JJJwong
Submission Time 2024-02-28 22:56:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp:21:7: error: invalid preprocessing directive ##
21 | # # Generate all combinations of students from each class
| ^
photo.cpp:22:7: error: invalid preprocessing directive #for
22 | # for selected_students in product(*heights):
| ^~~
photo.cpp:23:11: error: invalid preprocessing directive #max_height
23 | # max_height = max(selected_students)
| ^~~~~~~~~~
photo.cpp:24:11: error: invalid preprocessing directive #min_height
24 | # min_height = min(selected_students)
| ^~~~~~~~~~
photo.cpp:25:11: error: invalid preprocessing directive #min_diff
25 | # min_diff = min(min_diff, max_height - min_height)
| ^~~~~~~~
photo.cpp:1:1: error: ‘def’ does not name a type
1 | def min_height_difference(n, s, heights):
| ^~~