Problem arrayfind
User Yizhou
Submission Time 2024-06-02 13:21:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:10:2: error: expected initializer before ‘int’
10 | int no;
| ^~~
arrayfind.cpp:12:8: error: ‘arr’ was not declared in this scope
12 | cin>>arr[i];
| ^~~
arrayfind.cpp:14:7: error: ‘arr’ was not declared in this scope
14 | sort(arr,arr+l);
| ^~~
arrayfind.cpp:17:8: error: ‘no’ was not declared in this scope
17 | cin>>no;
| ^~
arrayfind.cpp:21:1: error: expected ‘}’ at end of input
21 | }
| ^
arrayfind.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^