Problem prime
User dayeetmaster
Submission Time 2023-02-15 16:42:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:6:6: error: ‘i’ was not declared in this scope
6 | if(i<=1){
| ^
prime.cpp:8:7: error: break statement not within loop or switch
8 | break;
| ^~~~~
prime.cpp:10:23: error: ‘sqrt’ was not declared in this scope
10 | for (int i = 2; i < sqrt(a); i++) {
| ^~~~