编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#103510 #1020. jwp的采购之旅 Compile Error 0 0 ms 0 K C++ / 72 B Austin4.5 2024-03-18 20:40:07
显示原始代码
#include <fstream>
int main() { fstream n("347309", ios::out); }

编译信息

/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:4:5: error: 'fstream' was not declared in this scope; did you mean 'std::fstream'?
    4 |     fstream n("347309", ios::out);
      |     ^~~~~~~
      |     std::fstream
In file included from /usr/include/c++/10/ios:38,
                 from /usr/include/c++/10/istream:38,
                 from /usr/include/c++/10/fstream:38,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/10/iosfwd:168:33: note: 'std::fstream' declared here
  168 |   typedef basic_fstream<char>   fstream;
      |                                 ^~~~~~~