| Problem | 0405 |
|---|---|
| User | Yinnotayl64 |
| Submission Time | 2026-02-23 17:33:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
0405.cpp: In function ‘int main()’:
0405.cpp:17:34: error: expected ‘)’ before ‘;’ token
17 | if (int j = i * i; j <= M; j += i) {
| ~ ^
| )
0405.cpp:17:36: error: ‘j’ was not declared in this scope
17 | if (int j = i * i; j <= M; j += i) {
| ^
0405.cpp: At global scope:
0405.cpp:24:5: error: expected unqualified-id before ‘for’
24 | for (int i = 2; i <= M && count < N; i++) {
| ^~~
0405.cpp:24:21: error: ‘i’ does not name a type
24 | for (int i = 2; i <= M && count < N; i++) {
| ^
0405.cpp:24:42: error: ‘i’ does not name a type
24 | for (int i = 2; i <= M && count < N; i++) {
| ^
0405.cpp:32:5: error: ‘cout’ does not name a type; did you mean ‘count’?
32 | cou