记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:20:30: error: cannot convert 'const char*' to 'FILE*'
   20 |         freopen("in.txt","r","stdin");
      |                              ^~~~~~~
      |                              |
      |                              const char*
In file included from foo.cc:1:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:267:40: note:   initializing argument 3 of 'FILE* freopen(const char*, const char*, FILE*)'
  267 |                       FILE *__restrict __stream) __wur;
      |                       ~~~~~~~~~~~~~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1047 A7-4 数组的查找函数
语言
C++
递交时间
2023-11-11 22:29:05
评测时间
2023-11-11 22:29:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes