/ AKIOI OJ /

记录详情

Compile Error

/in/foo.cc:68:11: warning: character constant too long for its type
   freopen(FILE_NAME+'.in', "r", stdin);
           ^~~~~~~~~
/in/foo.cc:68:21: warning: multi-character character constant [-Wmultichar]
   freopen(FILE_NAME+'.in', "r", stdin);
                     ^~~~~
/in/foo.cc:69:11: warning: character constant too long for its type
   freopen(FILE_NAME+'.out', "w", stdout);
           ^~~~~~~~~
/in/foo.cc:69:21: warning: multi-character character constant [-Wmultichar]
   freopen(FILE_NAME+'.out', "w", stdout);
                     ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:68:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   freopen(FILE_NAME+'.in', "r", stdin);
                    ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:280:14: note:   initializing argument 1 of 'FILE* freopen(const char*, const char*, FILE*)'
 extern FILE *freopen (const char *__restrict __filename,
              ^~~~~~~
/in/foo.cc:69:20: warning: integer overflow in expression [-Woverflow]
   freopen(FILE_NAME+'.out', "w", stdout);
                    ^
/in/foo.cc:69:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:280:14: note:   initializing argument 1 of 'FILE* freopen(const char*, const char*, FILE*)'
 extern FILE *freopen (const char *__restrict __filename,
              ^~~~~~~

信息

递交者
类型
自测
题目
P1001 A + B Problem
语言
C++
递交时间
2023-11-01 19:54:41
评测时间
2023-11-01 19:54:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes