Problem missingnumber
User YSH2020
Submission Time 2023-12-17 09:40:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

missingnumber.cpp: In function ‘int main()’:
missingnumber.cpp:11:40: error: ‘x’ was not declared in this scope
11 | for (int i = 1; i <= n; i++) if (a[x] == 0) {cout << x; return 0;}
| ^