Problem | prime |
---|---|
User | supercel980 |
Submission Time | 2024-08-03 12:35:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:8:22: error: expected ‘)’ before ‘for’
8 | sq = round(sqrt(n)+1
| ~ ^
| )
9 | for ( long long i = 2; i < sq; i++) {
| ~~~
prime.cpp:9:25: error: ‘i’ was not declared in this scope
9 | for ( long long i = 2; i < sq; i++) {
| ^
prime.cpp:14:6: error: ‘cw’ was not declared in this scope; did you mean ‘c’?
14 | if (cw != 0) {
| ^~
| c
prime.cpp:15:18: error: expected ‘;’ before ‘}’ token
15 | cout << "Prime"
| ^
| ;
16 | }
| ~
prime.cpp:18:22: error: expected ‘;’ before ‘}’ token
18 | cout << "Not Prime"
| ^
| ;
19 | }
| ~