Problem arrayfind
User polyda
Submission Time 2025-05-31 11:37:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:24:16: error: expected ‘;’ before ‘m’
24 | k=readInt()
| ^
| ;
25 | m[k]++;
| ~
arrayfind.cpp:28:14: error: expected ‘;’ before ‘for’
28 | q=readInt()
| ^
| ;
29 | for(int i=0; i<q; i++){
| ~~~
arrayfind.cpp:29:16: error: ‘i’ was not declared in this scope
29 | for(int i=0; i<q; i++){
| ^