/ Vijos /

记录详情

Compile Error

/in/foo.c:1:1: error: stray '\357' in program
 #include<stdio.h>
 ^
/in/foo.c:1:2: error: stray '\274' in program
 #include<stdio.h>
  ^
/in/foo.c:1:3: error: stray '\203' in program
 #include<stdio.h>
   ^
/in/foo.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 #include<stdio.h>
           ^
/in/foo.c:2:1: error: stray '\357' in program
 #include<string.h>
 ^
/in/foo.c:2:2: error: stray '\274' in program
 #include<string.h>
  ^
/in/foo.c:2:3: error: stray '\203' in program
 #include<string.h>
   ^
/in/foo.c:3:1: error: stray '\357' in program
 #include<stdlib.h>
 ^
/in/foo.c:3:2: error: stray '\274' in program
 #include<stdlib.h>
  ^
/in/foo.c:3:3: error: stray '\203' in program
 #include<stdlib.h>
   ^
/in/foo.c:4:1: error: stray '\357' in program
 #define M 10
 ^
/in/foo.c:4:2: error: stray '\274' in program
 #define M 10
  ^
/in/foo.c:4:3: error: stray '\203' in program
 #define M 10
   ^
/in/foo.c:5:1: error: stray '\357' in program
 #define N 600
 ^
/in/foo.c:5:2: error: stray '\274' in program
 #define N 600
  ^
/in/foo.c:5:3: error: stray '\203' in program
 #define N 600
   ^
/in/foo.c:6:1: error: stray '\357' in program
 #define NN 100
 ^
/in/foo.c:6:2: error: stray '\274' in program
 #define NN 100
  ^
/in/foo.c:6:3: error: stray '\203' in program
 #define NN 100
   ^
/in/foo.c: In function 'base_big':
/in/foo.c:11:1: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 memset(a, 0, sizeof(big));
 ^~~~~~
/in/foo.c:11:1: warning: incompatible implicit declaration of built-in function 'memset'
/in/foo.c:11:1: note: include '<string.h>' or provide a declaration of 'memset'
/in/foo.c:11:21: error: 'big' undeclared (first use in this function)
 memset(a, 0, sizeof(big));
                     ^~~
/in/foo.c:11:21: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'smlt':
/in/foo.c:23:28: error: 'M' undeclared (first use in this function)
 *(r + i + 1) += *(r + i) / M;
                            ^
/in/foo.c:27:30: error: invalid operands to binary * (have 'int *' and 'int')
 if(i < n) (r + i) = ((a + i) * b + * (r + i)) % M;
                      ~~~~~~~ ^
/in/foo.c: At top level:
/in/foo.c:29:12: error: unknown type name 'big'
 void print(big *a, int n)
            ^~~
/in/foo.c: In function 'main':
/in/foo.c:59:1: error: unknown type name 'big'
 big a, b;
 ^~~
/in/foo.c:63:10: error: 'NN' undeclared (first use in this function)
 char key[NN + 1];
          ^~
/in/foo.c:65:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 scanf("%d", &n);
 ^~~~~
/in/foo.c:65:1: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:65:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:67:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
 rslt = a;
      ^
/in/foo.c:68:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
 mltor = b;
       ^
/in/foo.c:85:1: warning: implicit declaration of function 'print' [-Wimplicit-function-declaration]
 print((big *)mltor, n);
 ^~~~~
/in/foo.c:85:8: error: 'big' undeclared (first use in this function)
 print((big *)mltor, n);
        ^~~
/in/foo.c:85:13: error: expected expression before ')' token
 print((big *)mltor, n);
             ^
/in/foo.c:63:6: warning: unused variable 'key' [-Wunused-variable]
 char key[NN + 1];
      ^~~

信息

递交者
类型
递交
题目
P1363 物理课考试
语言
C
递交时间
2018-07-21 11:40:07
评测时间
2018-07-21 11:40:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes