Problem missingnumber
User afzal
Submission Time 2025-08-15 15:02:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

missingnumber.cpp: In function ‘int main()’:
missingnumber.cpp:9:10: error: ‘u’ was not declared in this scope
9 | cin >> u;
| ^
missingnumber.cpp:12:14: error: ‘arr’ was not declared in this scope
12 | cin >> arr[u];
| ^~~
missingnumber.cpp:14:10: error: ‘arr’ was not declared in this scope
14 | sort(arr,arr+u)
| ^~~
missingnumber.cpp:15:17: error: ‘y’ was not declared in this scope
15 | for(int y=1;y<u+1;i++){
| ^
missingnumber.cpp:15:23: error: ‘i’ was not declared in this scope
15 | for(int y=1;y<u+1;i++){
| ^
missingnumber.cpp:19:5: error: expected ‘}’ at end of input
19 | }
| ^
missingnumber.cpp:7:1: note: to match this ‘{’
7 | {
| ^