记录详情

Compile Error

foo.c: In function 'main':
foo.c:4:1: error: 'cin' undeclared (first use in this function); did you mean 'min'?
    4 | cin>>a>>b>>c;
      | ^~~
      | min
foo.c:4:1: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:9: error: 'cout' undeclared (first use in this function)
    7 |         cout<<a<<"<“<<b<<"<"<<c<<endl;
      |         ^~~~
foo.c:7:28: warning: missing terminating " character
    7 |         cout<<a<<"<“<<b<<"<"<<c<<endl;
      |                            ^
foo.c:7:28: error: missing terminating " character
    7 |         cout<<a<<"<“<<b<<"<"<<c<<endl;
      |                            ^~~~~~~~~~~
foo.c:8:5: error: expected expression before 'else'
    8 |     else
      |     ^~~~
foo.c:6:5: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
    6 |     if(b<c)
      |     ^~
foo.c:6:5: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory
foo.c:11:13: error: expected declaration or statement at end of input
   11 |             cout<<a<<"<"<<c<<"<"<<b<<endl
      |             ^~~~
foo.c:3:11: warning: unused variable 'min' [-Wunused-variable]
    3 | int a,b,c,min;
      |           ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
比赛
2023年新生赛(第一场)
语言
C
递交时间
2023-08-15 11:57:24
评测时间
2023-08-15 11:57:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes