/ 科创班 /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
  scanf("%d,%d,&x,&y");
          ^
/in/foo.c:6:13: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
  scanf("%d,%d,&x,&y");
             ^
/in/foo.c:7:9: error: stray '\357' in program
  sum=x+y;
         ^
/in/foo.c:7:10: error: stray '\274' in program
  sum=x+y;
          ^
/in/foo.c:7:11: error: stray '\233' in program
  sum=x+y;
           ^
/in/foo.c:8:5: error: expected ';' before 'printf'
     printf("%d”,sum);
     ^~~~~~
/in/foo.c:8:12: warning: missing terminating " character
     printf("%d”,sum);
            ^
/in/foo.c:8:12: error: missing terminating " character
     printf("%d”,sum);
            ^~~~~~~~~~~~~~~~
/in/foo.c:9:1: error: expected declaration or statement at end of input
 }
 ^
/in/foo.c:5:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
  int x,y,sum;
          ^~~

代码

#include <stdio.h>

int main()
{
	int x,y,sum;
	scanf("%d,%d,&x,&y");
	sum=x+y;
    printf("%d”,sum);
}

信息

递交者
类型
递交
题目
x+y
题目数据
下载
语言
C
递交时间
2018-06-19 22:46:47
评测时间
2018-06-19 22:46:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes