记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:5:9: error: expected initializer before ‘cin’
    5 |         cin>>a>>b>>c;
      |         ^~~
foo.cc:7:17: error: ‘d’ was not declared in this scope
    7 |                 d=a;
      |                 ^
foo.cc:12:17: error: ‘d’ was not declared in this scope
   12 |                 d=a;
      |                 ^
foo.cc:17:17: error: ‘d’ was not declared in this scope
   17 |                 d=b;
      |                 ^
foo.cc:21:27: error: ‘c;’ was not declared in this scope
   21 |     cout<<a<<" "<<b<<" "<<c;
      |                           ^~~
foo.cc:21:30: error: expected ‘}’ at end of input
   21 |     cout<<a<<" "<<b<<" "<<c;
      |                              ^
foo.cc:3:11: note: to match this ‘{’
    3 | int main(){
      |           ^

信息

递交者
类型
自测
题目
A1-1 分支结构练习:三数排序
语言
C++
递交时间
2024-08-17 17:26:16
评测时间
2024-08-17 17:26:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes