Compile Error

foo.cc:3:1: error: ‘string’ does not name a type; did you mean ‘stdin’?
    3 | string s;
      | ^~~~~~
      | stdin
foo.cc: In function ‘int main()’:
foo.cc:6:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
    6 |     cin>>s;
      |     ^~~
      |     std::cin
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:146:
/nix/gcc-14.3.0/include/c++/14.3.0/iostream:62:18: note: ‘std::cin’ declared here
foo.cc:6:10: error: ‘s’ was not declared in this scope
    6 |     cin>>s;
      |          ^
Found 1 testcases.

信息

递交者
类型
递交
题目
P1001 合成唯一花瓣
语言
C++
递交时间
2025-07-28 15:40:45
评测时间
2025-08-06 06:26:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes