Problem arrayfind
User yq
Submission Time 2026-06-25 16:37:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:17:10: error: ‘i’ was not declared in this scope
17 | for(itg[i]>k){
| ^
arrayfind.cpp:17:13: error: ‘k’ was not declared in this scope
17 | for(itg[i]>k){
| ^
arrayfind.cpp:22:1: error: expected primary-expression before ‘}’ token
22 | }
| ^
arrayfind.cpp:21:4: error: expected ‘;’ before ‘}’ token
21 | }
| ^
| ;
22 | }
| ~
arrayfind.cpp:22:1: error: expected primary-expression before ‘}’ token
22 | }
| ^
arrayfind.cpp:21:4: error: expected ‘)’ before ‘}’ token
21 | }
| ^
| )
22 | }
| ~
arrayfind.cpp:17:5: note: to match this ‘(’
17 | for(itg[i]>k){
| ^
arrayfind.cpp:22:1: error: expected primary-expression before ‘}’ token
22 | }
| ^