Problem | prime |
---|---|
User | sophi |
Submission Time | 2023-12-04 16:13:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:10:37: error: expected ‘)’ before ‘;’ token
10 | for (int i = p * p; i < n+1; i+=p;){
| ~ ^
| )
prime.cpp:10:38: error: expected primary-expression before ‘)’ token
10 | for (int i = p * p; i < n+1; i+=p;){
| ^
prime.cpp:15:26: error: expected ‘;’ before ‘)’ token
15 | for ( int i = 2; i < n+1){
| ^
| ;
prime.cpp:16:7: error: ‘prime’ was not declared in this scope; did you mean ‘primes’?
16 | if (prime[i] == 1){
| ^~~~~
| primes