记录详情

Compile Error

/in/Main.java:1: error: illegal character: '#'
#include "stdio.h"
^
/in/Main.java:1: error: class, interface, or enum expected
#include "stdio.h"
         ^
/in/Main.java:6: error: class, interface, or enum expected
    for (int i = 0; i < n; i++) 
    ^
/in/Main.java:6: error: class, interface, or enum expected
    for (int i = 0; i < n; i++) 
                    ^
/in/Main.java:6: error: class, interface, or enum expected
    for (int i = 0; i < n; i++) 
                           ^
/in/Main.java:9: error: class, interface, or enum expected
        if (arr[i] < 2) 
        ^
/in/Main.java:12: error: class, interface, or enum expected
        } 
        ^
/in/Main.java:16: error: class, interface, or enum expected
            for (int j = 2; j * j <= arr[i]; j++) 
                            ^
/in/Main.java:16: error: class, interface, or enum expected
            for (int j = 2; j * j <= arr[i]; j++) 
                                             ^
/in/Main.java:21: error: class, interface, or enum expected
                    break;
                    ^
/in/Main.java:22: error: class, interface, or enum expected
                }
                ^
/in/Main.java:28: error: class, interface, or enum expected
        }
        ^
/in/Main.java:32: error: class, interface, or enum expected
}
^
/in/Main.java:38: error: class, interface, or enum expected
    int n1, n2;
    ^
/in/Main.java:39: error: class, interface, or enum expected
    scanf("%d%d", &n1, &n2);
    ^
/in/Main.java:40: error: class, interface, or enum expected
    for (int i = 0; i < n1; i++) 
    ^
/in/Main.java:40: error: class, interface, or enum expected
    for (int i = 0; i < n1; i++) 
                    ^
/in/Main.java:40: error: class, interface, or enum expected
    for (int i = 0; i < n1; i++) 
                            ^
/in/Main.java:43: error: class, interface, or enum expected
    }
    ^
/in/Main.java:45: error: class, interface, or enum expected
    for (int i = 0; i < n2; i++) 
                    ^
/in/Main.java:45: error: class, interface, or enum expected
    for (int i = 0; i < n2; i++) 
                            ^
/in/Main.java:48: error: class, interface, or enum expected
    }
    ^
/in/Main.java:51: error: class, interface, or enum expected
    int countB = PrimeCount(b, n2);
    ^
/in/Main.java:53: error: class, interface, or enum expected
    printf("%d %d", countA, countB);
    ^
/in/Main.java:56: error: class, interface, or enum expected
    return 0;
    ^
/in/Main.java:57: error: class, interface, or enum expected
}
^
26 errors

信息

递交者
类型
自测
语言
Java
递交时间
2024-11-19 08:30:58
评测时间
2024-11-19 08:30:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes