Problem arrayfind
User isaackhong
Submission Time 2023-04-19 16:17:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:11:3: error: ‘FOR’ was not declared in this scope
11 | FOR(n) cin >> arr[i];
| ^~~
arrayfind.cpp:18:8: error: expected ‘;’ before ‘)’ token
18 | for(m) {
| ^
| ;
arrayfind.cpp:24:1: error: expected primary-expression before ‘}’ token
24 | }
| ^
arrayfind.cpp:23:4: error: expected ‘;’ before ‘}’ token
23 | }
| ^
| ;
24 | }
| ~
arrayfind.cpp:24:1: error: expected primary-expression before ‘}’ token
24 | }
| ^
arrayfind.cpp:23:4: error: expected ‘)’ before ‘}’ token
23 | }
| ^
| )
24 | }
| ~
arrayfind.cpp:18:6: note: to match this ‘(’
18 | for(m) {
| ^
arrayfind.cpp:24:1: error: expected primary-expression before ‘}’ token
24 | }
| ^