Problem lcm
User Hatrix
Submission Time 2026-03-09 20:55:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lcm.cpp: In function ‘int main()’:
lcm.cpp:7:6: error: ‘i’ was not declared in this scope
7 | for(i = 0; i < n; i++)
| ^
lcm.cpp:12:17: error: ‘i’ was not declared in this scope
12 | cout << lcm(n, i);
| ^