记录详情

Compile Error

foo.c: In function 'main':
foo.c:20:7: error: stray '\342' in program
 scanf(“%d”,&n);
       ^
foo.c:20:8: error: stray '\200' in program
 scanf(“%d”,&n);
        ^
foo.c:20:9: error: stray '\234' in program
 scanf(“%d”,&n);
         ^
foo.c:20:10: error: expected expression before '%' token
 scanf(“%d”,&n);
          ^
foo.c:20:12: error: stray '\342' in program
 scanf(“%d”,&n);
            ^
foo.c:20:13: error: stray '\200' in program
 scanf(“%d”,&n);
             ^
foo.c:20:14: error: stray '\235' in program
 scanf(“%d”,&n);
              ^
foo.c:22:7: error: stray '\342' in program
 scanf(“%s”,&stu[i].name);
       ^
foo.c:22:8: error: stray '\200' in program
 scanf(“%s”,&stu[i].name);
        ^
foo.c:22:9: error: stray '\234' in program
 scanf(“%s”,&stu[i].name);
         ^
foo.c:22:10: error: expected expression before '%' token
 scanf(“%s”,&stu[i].name);
          ^
foo.c:22:12: error: stray '\342' in program
 scanf(“%s”,&stu[i].name);
            ^
foo.c:22:13: error: stray '\200' in program
 scanf(“%s”,&stu[i].name);
             ^
foo.c:22:14: error: stray '\235' in program
 scanf(“%s”,&stu[i].name);
              ^
foo.c:28:7: error: stray '\342' in program
 scanf(“%s”,&ren);
       ^
foo.c:28:8: error: stray '\200' in program
 scanf(“%s”,&ren);
        ^
foo.c:28:9: error: stray '\234' in program
 scanf(“%s”,&ren);
         ^
foo.c:28:10: error: expected expression before '%' token
 scanf(“%s”,&ren);
          ^
foo.c:28:12: error: stray '\342' in program
 scanf(“%s”,&ren);
            ^
foo.c:28:13: error: stray '\200' in program
 scanf(“%s”,&ren);
             ^
foo.c:28:14: error: stray '\235' in program
 scanf(“%s”,&ren);
              ^
foo.c:30:7: error: stray '\342' in program
 scanf(“%d%d”,&stu[song].money,&stu[song].renshu);
       ^
foo.c:30:8: error: stray '\200' in program
 scanf(“%d%d”,&stu[song].money,&stu[song].renshu);
        ^
foo.c:30:9: error: stray '\234' in program
 scanf(“%d%d”,&stu[song].money,&stu[song].renshu);
         ^
foo.c:30:10: error: expected expression before '%' token
 scanf(“%d%d”,&stu[song].money,&stu[song].renshu);
          ^
foo.c:30:14: error: stray '\342' in program
 scanf(“%d%d”,&stu[song].money,&stu[song].renshu);
              ^
foo.c:30:15: error: stray '\200' in program
 scanf(“%d%d”,&stu[song].money,&stu[song].renshu);
               ^
foo.c:30:16: error: stray '\235' in program
 scanf(“%d%d”,&stu[song].money,&stu[song].renshu);
                ^
foo.c:34:7: error: stray '\342' in program
 scanf(“%s”,ren);
       ^
foo.c:34:8: error: stray '\200' in program
 scanf(“%s”,ren);
        ^
foo.c:34:9: error: stray '\234' in program
 scanf(“%s”,ren);
         ^
foo.c:34:10: error: expected expression before '%' token
 scanf(“%s”,ren);
          ^
foo.c:34:12: error: stray '\342' in program
 scanf(“%s”,ren);
            ^
foo.c:34:13: error: stray '\200' in program
 scanf(“%s”,ren);
             ^
foo.c:34:14: error: stray '\235' in program
 scanf(“%s”,ren);
              ^
foo.c:41:8: error: stray '\342' in program
 printf(“%s %d\n”,stu[i].name,stu[i].in-stu[i].out);
        ^
foo.c:41:9: error: stray '\200' in program
 printf(“%s %d\n”,stu[i].name,stu[i].in-stu[i].out);
         ^
foo.c:41:10: error: stray '\234' in program
 printf(“%s %d\n”,stu[i].name,stu[i].in-stu[i].out);
          ^
foo.c:41:11: error: expected expression before '%' token
 printf(“%s %d\n”,stu[i].name,stu[i].in-stu[i].out);
           ^
foo.c:41:16: error: stray '\' in program
 printf(“%s %d\n”,stu[i].name,stu[i].in-stu[i].out);
                ^
foo.c:41:18: error: stray '\342' in program
 printf(“%s %d\n”,stu[i].name,stu[i].in-stu[i].out);
                  ^
foo.c:41:19: error: stray '\200' in program
 printf(“%s %d\n”,stu[i].name,stu[i].in-stu[i].out);
                   ^
foo.c:41:20: error: stray '\235' in program
 printf(“%s %d\n”,stu[i].name,stu[i].in-stu[i].out);
                    ^
foo.c:42:1: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration]
 system(“pause”);
 ^~~~~~
foo.c:42:8: error: stray '\342' in program
 system(“pause”);
        ^
foo.c:42:9: error: stray '\200' in program
 system(“pause”);
         ^
foo.c:42:10: error: stray '\234' in program
 system(“pause”);
          ^
foo.c:42:16: error: stray '\342' in program
 system(“pause”);
                ^
foo.c:42:17: error: stray '\200' in program
 system(“pause”);
                 ^
foo.c:42:18: error: stray '\235' in program
 system(“pause”);
                  ^
foo.c:42:11: error: 'pause' undeclared (first use in this function)
 system(“pause”);
           ^~~~~
foo.c:42:11: note: each undeclared identifier is reported only once for each function it appears in
foo.c: In function 'cmp':
foo.c:17:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
自测
题目
P1064 贪婪的送礼者
语言
C
递交时间
2020-12-01 13:55:06
评测时间
2020-12-01 13:55:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes