/ Vijos /

记录详情

Compile Error

foo.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 include <stdio.h> include <stdlib.h> include <string.h>
         ^
foo.c: In function 'main':
foo.c:15:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 scanf("%d%d",&n,&m);
 ^
foo.c:15:1: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default]
foo.c:17:12: error: 'a' undeclared (first use in this function)
 scanf("%s",a);
            ^
foo.c:17:12: note: each undeclared identifier is reported only once for each function it appears in
foo.c:30:15: error: expected ')' before numeric constant
 a1[i] = (a1[i]10+a[j]-'0')%p1;
               ^
foo.c:31:15: error: expected ')' before numeric constant
 a2[i] = (a2[i]10+a[j]-'0')%p2;
               ^
foo.c:32:15: error: expected ')' before numeric constant
 a3[i] = (a3[i]10+a[j]-'0')%p3;
               ^
foo.c:33:15: error: expected ')' before numeric constant
 a4[i] = (a4[i]10+a[j]-'0')%p4;
               ^
foo.c:55:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
     printf("%d\n",ans1);
     ^
foo.c:55:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
foo.c:59:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
     memset(can1,0,sizeof(can1));
     ^
foo.c:59:5: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
foo.c:63:13: error: stray '\264' in program
             s1 = (s1+错了a1[i]*tx1)%p1;
             ^
foo.c:63:13: error: stray '\355' in program
foo.c:63:13: error: stray '\301' in program
foo.c:63:13: error: stray '\313' in program
foo.c:64:13: error: stray '\261' in program
             tx1 = (tx1*x1别)%p1;
             ^
foo.c:64:13: error: stray '\360' in program
foo.c:70:5: error: stray '\325' in program
     memset(can2,0,sizeo找f(can2));
     ^
foo.c:70:5: error: stray '\322' in program
foo.c:70:19: error: 'sizeo' undeclared (first use in this function)
     memset(can2,0,sizeo找f(can2));
                   ^
foo.c:70:26: error: expected ')' before 'f'
     memset(can2,0,sizeo找f(can2));
                          ^
foo.c:71:5: error: stray '\316' in program
     for (x = 0;x < p2;x我++) {
     ^
foo.c:71:5: error: stray '\322' in program
foo.c:82:5: error: stray '\314' in program
     for (x = 0;x < p3;x++) {题解
     ^
foo.c:82:5: error: stray '\342' in program
foo.c:82:5: error: stray '\275' in program
foo.c:82:5: error: stray '\342' in program
foo.c:84:9: error: stray '\262' in program
         for (i = 0;i <= n;i++) {不是
         ^
foo.c:84:9: error: stray '\273' in program
foo.c:84:9: error: stray '\312' in program
foo.c:84:9: error: stray '\307' in program
foo.c:87:9: error: stray '\261' in program
         }本题
         ^
foo.c:87:9: error: stray '\276' in program
foo.c:87:9: error: stray '\314' in program
foo.c:87:9: error: stray '\342' in program
foo.c:108:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
     printf("%d\n",ans1);
     ^
foo.c:14:9: warning: unused variable 'k' [-Wunused-variable]
 int i,j,k;
         ^

信息

递交者
类型
递交
题目
P1798 摄影师的烦恼
语言
C
递交时间
2015-12-01 17:32:45
评测时间
2015-12-01 17:32:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes