Compile Error

foo.cc: In function 'int main()':
foo.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>xa>>ya>>xb>>yb;
      |         ^~~
      |         std::cin
In file included from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:75,
                 from foo.cc:1:
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/iostream:60:18: note: 'std::cin' declared here
   60 |   extern istream cin;           /// Linked to standard input
      |                  ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2325 1.3.16:计算线段长度
语言
C++
递交时间
2023-07-21 20:40:06
评测时间
2023-07-21 20:40:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes