记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:25:15: error: stray '\357' in program
     int n1, n2;
               ^
/in/foo.c:25:16: error: stray '\274' in program
     int n1, n2;
                ^
/in/foo.c:25:17: error: stray '\233' in program
     int n1, n2;
                 ^
/in/foo.c:26:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
     scanf("%d", &n1);
     ^~~~~
/in/foo.c:27:18: error: 'n2' undeclared (first use in this function)
     scanf("%d", &n2);
                  ^~
/in/foo.c:27:18: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:30:23: error: subscripted value is neither array nor pointer nor vector
         scanf("%d", &a[i]);
                       ^
/in/foo.c:34:23: error: subscripted value is neither array nor pointer nor vector
         scanf("%d", &b[i]);
                       ^
/in/foo.c:36:34: warning: passing argument 1 of 'PrimeCount' makes pointer from integer without a cast [-Wint-conversion]
     int primeCountA = PrimeCount(a, n1);
                                  ^
/in/foo.c:13:5: note: expected 'int *' but argument is of type 'int'
 int PrimeCount(int arr[], int size) {
     ^~~~~~~~~~
/in/foo.c:38:34: warning: passing argument 1 of 'PrimeCount' makes pointer from integer without a cast [-Wint-conversion]
     int primeCountB = PrimeCount(b, n2);
                                  ^
/in/foo.c:13:5: note: expected 'int *' but argument is of type 'int'
 int PrimeCount(int arr[], int size) {
     ^~~~~~~~~~

信息

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