Problem photo
User burningout
Submission Time 2025-03-05 13:47:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp: In function ‘int min_height_difference(int, int, std::vector<std::vector<int> >&)’:
photo.cpp:21:31: error: ‘class_id’ was not declared in this scope; did you mean ‘class’?
21 | class_count[students[right],class_id] == 1) unique_classes++;
| ^~~~~~~~
| class
photo.cpp: In function ‘int main()’:
photo.cpp:38:11: error: ‘height’ was not declared in this scope; did you mean ‘heights’?
38 | cin >> height[i][j];
| ^~~~~~
| heights
photo.cpp:41:10: error: ‘min_height’ was not declared in this scope
41 | cout << min_height difference(n,s,heights) << endl;
| ^~~~~~~~~~