Problem photo
User yoshiokalili
Submission Time 2026-02-19 11:15:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp: In function ‘int main()’:
photo.cpp:15:15: error: expected initializer before ‘>>’ token
15 | int c, cin >> c;
| ^~
photo.cpp:21:3: error: expected ‘,’ or ‘;’ before ‘int’
21 | int current = 4e18; //relative inf
| ^~~
photo.cpp:22:3: error: ‘current’ was not declared in this scope
22 | current = min(current, diff);
| ^~~~~~~
photo.cpp:25:10: error: ‘current’ was not declared in this scope
25 | cout << current << "\n";
| ^~~~~~~