/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:21:11: error: expected expression before 'int'
   if(code[int(getCode[doing])]=='#'){
           ^~~
foo.c:22:9: error: expected expression before 'int'
    code[int(getCode[doing])]=text[doing];
         ^~~
foo.c:23:17: error: expected expression before 'int'
   }else if(code[int(getCode[doing])]!=text[doing]){  //如果出现错误。
                 ^~~
foo.c:37:11: error: expected expression before 'int'
   if(code[int(Code[doing])]=='#'){
           ^~~
foo.c:41:17: error: expected expression before 'char'
    printf("%c", char(code[int(Code[doing])]));
                 ^~~~
foo.c:13:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s", getCode);
  ^~~~~~~~~~~~~~~~~~~~
foo.c:15:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s", text);
  ^~~~~~~~~~~~~~~~~
foo.c:31:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s", Code);
  ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1752 潜伏者
语言
C
递交时间
2021-10-17 19:54:17
评测时间
2021-10-17 19:54:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes