Problem prime
User RAyhahh
Submission Time 2024-01-31 15:39:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:17:25: error: expected ‘;’ before ‘for’
17 | cout << " Not Prime\n"
| ^
| ;
......
20 | for (int i = 2; i <= n / 2; i++)
| ~~~
prime.cpp:20:21: error: ‘i’ was not declared in this scope
20 | for (int i = 2; i <= n / 2; i++)
| ^