Problem lcm
User CalebKow
Submission Time 2025-06-23 04:24:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lcm.cpp: In function ‘int main()’:
lcm.cpp:5:24: error: expected ‘;’ before ‘for’
5 | std::cin >> population
| ^
| ;
6 |
7 | for(int i=1; i<=population; ++i){
| ~~~
lcm.cpp:7:15: error: ‘i’ was not declared in this scope
7 | for(int i=1; i<=population; ++i){
| ^