记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |         scanf("%d%d",&a,&b);
      |         ^~~~~
/in/foo.c:6:9: error: 'c' undeclared (first use in this function)
    6 |         c=a+b;
      |         ^
/in/foo.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:16: warning: missing terminating " character
    7 |         printf("%d,c);
      |                ^
/in/foo.c:7:16: error: missing terminating " character
    7 |         printf("%d,c);
      |                ^~~~~~~
/in/foo.c:8:1: error: expected expression before '}' token
    8 | }
      | ^
/in/foo.c:7:16: error: expected ';' before '}' token
    7 |         printf("%d,c);
      |                ^
      |                ;
    8 | }
      | ~               

信息

递交者
类型
递交
题目
A+B problem
语言
C
递交时间
2026-05-21 17:54:19
评测时间
2026-05-21 17:54:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes