/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:13: error: expected expression before ':' token
    6 |         std::cin>>a>>b;
      |             ^
/in/foo.c:7:9: error: duplicate label 'std'
    7 |         std::cout<<a+b;
      |         ^~~
/in/foo.c:6:9: note: previous definition of 'std' with type 'void'
    6 |         std::cin>>a>>b;
      |         ^~~
/in/foo.c:7:13: error: expected expression before ':' token
    7 |         std::cout<<a+b;
      |             ^
/in/foo.c:6:9: warning: label 'std' defined but not used [-Wunused-label]
    6 |         std::cin>>a>>b;
      |         ^~~
/in/foo.c:5:15: warning: unused variable 'b' [-Wunused-variable]
    5 |         int a,b;
      |               ^
/in/foo.c:5:13: warning: unused variable 'a' [-Wunused-variable]
    5 |         int a,b;
      |             ^

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C
递交时间
2026-07-20 16:11:20
评测时间
2026-07-20 16:11:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes