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)提供评测服务