运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
263516 QAQ 1111 - DNA 序列 编译错误 0 0 MS 0 KB C++ 3640 3年前
暂时无法获取本题测试点详情。

Main.cc:69:5: error: redefinition of ‘int main()’
69 | int main()
| ^~~~
Main.cc:26:5: note: ‘int main()’ previously defined here
26 | int main()
| ^~~~
Main.cc:117:5: error: redefinition of ‘int main()’
117 | int main()
| ^~~~
Main.cc:26:5: note: ‘int main()’ previously defined here
26 | int main()
| ^~~~
Main.cc: In function ‘int longestSubstring(std::string, int)’:
Main.cc:145:16: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
145 | if(s.size()<k)
| ~~~~~~~~^~
Main.cc:152:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
152 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
Main.cc: At global scope:
Main.cc:165:5: error: redefinition of ‘int main()’
165 | int main()
| ^~~~
Main.cc:26:5: note: ‘int main()’ previously defined here
26 | int main()
| ^~~~