Problem prime
User yongteckrice
Submission Time 2023-01-26 14:37:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:12:19: error: expected ‘;’ before ‘for’
12 | if (a<2)check = 1
| ^
| ;
13 |
14 | for (i{2}; i*i < a; i++)
| ~~~
prime.cpp:14:13: error: ‘i’ was not declared in this scope
14 | for (i{2}; i*i < a; i++)
| ^