Problem | arrayfind |
---|---|
User | MajesticMist |
Submission Time | 2024-05-24 14:03:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:9:22: error: ‘a’ was not declared in this scope
9 | scanf("%ld",&a[i]);
| ^
arrayfind.cpp:14:5: error: expected initializer before ‘scanf’
14 | scanf("%d", &m);
| ^~~~~
arrayfind.cpp:16:23: error: ‘query’ was not declared in this scope
16 | scanf("%ld", &query[i]);
| ^~~~~
arrayfind.cpp:24:16: error: ‘query’ was not declared in this scope
24 | if(query[i]>arr[j]){
| ^~~~~
arrayfind.cpp:27:16: error: ‘query’ was not declared in this scope
27 | if(query[i]<arr[j]){
| ^~~~~
arrayfind.cpp:38:1: error: expected ‘}’ at end of input
38 | }
| ^
arrayfind.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^