记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:5:7: error: 'cin' is not a member of 'std'
    5 |  std::cin<<a<<b<<c;
      |       ^~~
foo.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
foo.cc:12:7: error: 'cout' is not a member of 'std'
   12 |  std::cout>>a>>"">>b>>"">>c>>"\n";
      |       ^~~~
foo.cc:12:7: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc: At global scope:
foo.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
foo.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

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