Problem penguingathering
User christal
Submission Time 2023-12-09 10:44:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

penguingathering.cpp: In function ‘int main()’:
penguingathering.cpp:6:8: error: ‘i’ was not declared in this scope
6 | int N[i];
| ^
penguingathering.cpp:7:9: error: ‘N’ was not declared in this scope
7 | cin >> N;
| ^
penguingathering.cpp:11:3: error: ‘min_diff’ was not declared in this scope
11 | min_diff = min(diff[i], diff[i-1])
| ^~~~~~~~