/ Vijos /

记录详情

Compile Error

/in/foo.c:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include &lt;stdio.h&gt;
          ^
/in/foo.c:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include &lt;string.h&gt;
          ^
/in/foo.c:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include &lt;stdlib.h&gt;
          ^
/in/foo.c:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include &lt;memory.h&gt;
          ^
/in/foo.c: In function 'bigchenfa':
/in/foo.c:11:1: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
 memset(sum,0,sizeof(sum));
 ^~~~~~
/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:20: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
 memset(sum,0,sizeof(sum));
                    ^
/in/foo.c:13:13: error: 'lt' undeclared (first use in this function)
 for(i=1 ; i&lt;= la ; i ) /*用数组模拟运算*/
             ^~
/in/foo.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:13:16: error: expected expression before '=' token
 for(i=1 ; i&lt;= la ; i ) /*用数组模拟运算*/
                ^
/in/foo.c:14:24: error: expected expression before '=' token
 for(j=1,lsum=i-1; j&lt;= lb ; j )
                        ^
/in/foo.c:17:16: error: expected expression before '=' token
 for(i=1 ; i&lt;= lsum ; i )/*进位处理*/
                ^
/in/foo.c:18:13: error: 'gt' undeclared (first use in this function)
 if (sum[i] &gt;= 10)
             ^~
/in/foo.c:18:15: error: expected ')' before ';' token
 if (sum[i] &gt;= 10)
               ^
/in/foo.c:20:19: error: expected ')' before ';' token
 if ( sum[lsum] &gt;= 10)
                   ^
/in/foo.c:21:1: warning: statement with no effect [-Wunused-value]
 lsum ;
 ^~~~
/in/foo.c:22:7: error: expected ']' before numeric constant
 sum[i 1] = sum[i] / 10 ;
       ^
/in/foo.c:10:9: warning: unused variable 'k' [-Wunused-variable]
 int i,j,k ;
         ^
/in/foo.c: In function 'main':
/in/foo.c:36:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 scanf(\"%s %s\",sa,sb);
 ^~~~~
/in/foo.c:36:1: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:36:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:36:7: error: stray '\' in program
 scanf(\"%s %s\",sa,sb);
       ^
/in/foo.c:36:8: warning: missing terminating " character
 scanf(\"%s %s\",sa,sb);
        ^
/in/foo.c:36:8: error: missing terminating " character
 scanf(\"%s %s\",sa,sb);
        ^~~~~~~~~~~~~~~~ 
/in/foo.c:38:6: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
 la = strlen(sa);
      ^~~~~~
/in/foo.c:38:6: warning: incompatible implicit declaration of built-in function 'strlen'
/in/foo.c:38:6: note: include '<string.h>' or provide a declaration of 'strlen'
/in/foo.c:38:16: error: expected ')' before ';' token
 la = strlen(sa);
                ^
/in/foo.c:42:16: error: stray '\342' in program
 a[i] = sa[j] - ’0’ ;
                ^
/in/foo.c:42:17: error: stray '\200' in program
 a[i] = sa[j] - ’0’ ;
                 ^
/in/foo.c:42:18: error: stray '\231' in program
 a[i] = sa[j] - ’0’ ;
                  ^
/in/foo.c:42:20: error: stray '\342' in program
 a[i] = sa[j] - ’0’ ;
                    ^
/in/foo.c:42:21: error: stray '\200' in program
 a[i] = sa[j] - ’0’ ;
                     ^
/in/foo.c:42:22: error: stray '\231' in program
 a[i] = sa[j] - ’0’ ;
                      ^
/in/foo.c:44:16: error: stray '\342' in program
 b[i] = sb[j] - ’0’ ;
                ^
/in/foo.c:44:17: error: stray '\200' in program
 b[i] = sb[j] - ’0’ ;
                 ^
/in/foo.c:44:18: error: stray '\231' in program
 b[i] = sb[j] - ’0’ ;
                  ^
/in/foo.c:44:20: error: stray '\342' in program
 b[i] = sb[j] - ’0’ ;
                    ^
/in/foo.c:44:21: error: stray '\200' in program
 b[i] = sb[j] - ’0’ ;
                     ^
/in/foo.c:44:22: error: stray '\231' in program
 b[i] = sb[j] - ’0’ ;
                      ^
/in/foo.c:49:8: error: stray '\' in program
 printf(\"%d\",sum[i]);
        ^
/in/foo.c:49:9: warning: missing terminating " character
 printf(\"%d\",sum[i]);
         ^
/in/foo.c:49:9: error: missing terminating " character
 printf(\"%d\",sum[i]);
         ^~~~~~~~~~~~~~ 
/in/foo.c:51:8: error: stray '\' in program
 printf(\" \");
        ^
/in/foo.c:51:9: warning: missing terminating " character
 printf(\" \");
         ^
/in/foo.c:51:9: error: missing terminating " character
 printf(\" \");
         ^~~~~~ 
/in/foo.c:53:8: error: stray '\' in program
 system(\"pause\");
        ^
/in/foo.c:53:9: warning: missing terminating " character
 system(\"pause\");
         ^
/in/foo.c:53:9: error: missing terminating " character
 system(\"pause\");
         ^~~~~~~~~~ 
/in/foo.c:38:1: warning: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
 la = strlen(sa);
 ^~
/in/foo.c:38:1: note: expected 'const char *' but argument is of type 'int'
/in/foo.c:56:1: error: expected declaration or statement at end of input
 }
 ^
/in/foo.c:35:14: warning: unused variable 'sb' [-Wunused-variable]
 char sa[MAX],sb[MAX] ;
              ^~
/in/foo.c:34:7: warning: unused variable 'j' [-Wunused-variable]
 int i,j ;
       ^
/in/foo.c:34:5: warning: unused variable 'i' [-Wunused-variable]
 int i,j ;
     ^
/in/foo.c:33:15: warning: unused variable 'lsum' [-Wunused-variable]
 int la=0,lb=0,lsum=0;
               ^~~~
/in/foo.c:33:10: warning: unused variable 'lb' [-Wunused-variable]
 int la=0,lb=0,lsum=0;
          ^~
/in/foo.c:32:27: warning: unused variable 'sum' [-Wunused-variable]
 int a[MAX]={0},b[MAX]={0},sum[MAX*2]={0} ;
                           ^~~
/in/foo.c:32:16: warning: unused variable 'b' [-Wunused-variable]
 int a[MAX]={0},b[MAX]={0},sum[MAX*2]={0} ;
                ^
/in/foo.c:32:5: warning: unused variable 'a' [-Wunused-variable]
 int a[MAX]={0},b[MAX]={0},sum[MAX*2]={0} ;
     ^

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C
递交时间
2017-11-25 19:48:29
评测时间
2017-11-25 19:48:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes