/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:8: warning: multi-character character constant [-Wmultichar]
  scanf('%s%s',a,b);
        ^~~~~~
/in/foo.c:7:8: warning: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/include/features.h:364:0,
                 from /usr/include/stdio.h:27,
                 from /in/foo.c:1:
/usr/include/stdio.h:448:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
            ^
/in/foo.c:14:7: error: 'i' undeclared (first use in this function)
  for( i=0;i<m;i++)
       ^
/in/foo.c:14:7: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:16:11: error: 'j' undeclared (first use in this function)
   number2[j]=b[j]-'0';
           ^
/in/foo.c:34:2: warning: implicit declaration of function 'print' [-Wimplicit-function-declaration]
  print('%d',c[i]);
  ^~~~~
/in/foo.c:34:8: warning: multi-character character constant [-Wmultichar]
  print('%d',c[i]);
        ^~~~
/in/foo.c:18:6: warning: variable 'c' set but not used [-Wunused-but-set-variable]
  int c[20000],j;
      ^
/in/foo.c:9:6: warning: variable 'number1' set but not used [-Wunused-but-set-variable]
  int number1[n],number2[m];
      ^~~~~~~

信息

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