Problem photo
User ahrynn
Submission Time 2024-05-04 22:19:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp: In function ‘int main()’:
photo.cpp:45:46: error: request for member ‘begin’ in ‘frontier’, which is of non-class type ‘long long int [n]’
45 | long long idxmax = distance(frontier.begin(), max_element(frontier.begin(), frontier.end()));
| ^~~~~
photo.cpp:45:76: error: request for member ‘begin’ in ‘frontier’, which is of non-class type ‘long long int [n]’
45 | long long idxmax = distance(frontier.begin(), max_element(frontier.begin(), frontier.end()));
| ^~~~~
photo.cpp:45:94: error: request for member ‘end’ in ‘frontier’, which is of non-class type ‘long long int [n]’
45 | long long idxmax = distance(frontier.begin(), max_element(frontier.begin(), frontier.end()));
| ^~~
photo.cpp:46: