请求修复SPJ
查看原帖
请求修复SPJ
367991
Arctic_1010楼主2021/12/22 22:01

rt

这题spj貌似 CE

提交显示

编译信息
编译失败
SPJ compilation failed: 

/tmp/compiler_kf_hvjit/src:5:31: 错误:‘char opt’ redeclared as different kind of entity
    5 | int n,m;bool ins[100010];char opt;int now;
      |                               ^~~
In file included from /tmp/compiler_kf_hvjit/src:1:
/opt/judge-include/testlib.h:5059:13: 附注:previous declaration ‘std::string opt(std::string)’
 5059 | std::string opt(const std::string key) {
      |             ^~~
/tmp/compiler_kf_hvjit/src: 在函数‘int main(int, char**)’中:
/tmp/compiler_kf_hvjit/src:14:13: 错误:被重载的函数缺少上下文信息
   14 |         opt=0;
      |             ^
/tmp/compiler_kf_hvjit/src:15:18: 错误:操作数类型‘<未解决的重载函数类型>’和‘char’对双目‘operator!=’而言无效
   15 |         while(opt!='-'&&opt!='+') opt=inf.readChar();
      |               ~~~^~~~~
/tmp/compiler_kf_hvjit/src:15:28: 错误:操作数类型‘<未解决的重载函数类型>’和‘char’对双目‘operator!=’而言无效
   15 |         while(opt!='-'&&opt!='+') opt=inf.readChar();
      |                         ~~~^~~~~
/tmp/compiler_kf_hvjit/src:15:52: 错误:被重载的函数缺少上下文信息
   15 |         while(opt!='-'&&opt!='+') opt=inf.readChar();
      |                                                    ^
/tmp/compiler_kf_hvjit/src:17:15: 错误:操作数类型‘<未解决的重载函数类型>’和‘char’对双目‘operator==’而言无效
   17 |         if(opt=='+') {
      |            ~~~^~~~~
/tmp/compiler_kf_hvjit/src:38:15: 错误:操作数类型‘<未解决的重载函数类型>’和‘char’对双目‘operator==’而言无效
   38 |         if(opt=='-') {
      |            ~~~^~~~~
2021/12/22 22:01
加载中...