| Problem | prime |
|---|---|
| User | xiaocai918 |
| Submission Time | 2026-11-10 11:14:02 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:14:2: error: expected initializer before ‘int’
14 | int Q[0] = 2;
| ^~~
prime.cpp:16:23: error: array must be initialized with a brace-enclosed initializer
16 | int Q[i] = Q[i - 1] + 1;
| ~~~~~~~~~^~~
prime.cpp:20:11: error: ‘Q’ was not declared in this scope
20 | if (n % Q[i] == 0) {
| ^
prime.cpp:25:3: error: break statement not within loop or switch
25 | break;
| ^~~~~