Problem | arrayfind |
---|---|
User | 0ncarat |
Submission Time | 2024-05-25 10:50:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayfind.cpp:2:5: error: ‘cin’ does not name a type
2 | cin>>n>>q;
| ^~~
arrayfind.cpp:4:14: error: array bound is not an integer constant before ‘]’ token
4 | int arr[n];
| ^
arrayfind.cpp:5:5: error: expected unqualified-id before ‘for’
5 | for(int i=0;i<n;i++){
| ^~~
arrayfind.cpp:5:17: error: ‘i’ does not name a type
5 | for(int i=0;i<n;i++){
| ^
arrayfind.cpp:5:21: error: ‘i’ does not name a type
5 | for(int i=0;i<n;i++){
| ^
arrayfind.cpp:10:2: error: expected unqualified-id before ‘for’
10 | for(int i=0;i<q;i++){
| ^~~
arrayfind.cpp:10:14: error: ‘i’ does not name a type; did you mean ‘hi’?
10 | for(int i=0;i<q;i++){
| ^
| hi
arrayfind.cpp:10:18: error: ‘i’ does not name a type; did you mean ‘hi’?
10 |