Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6259 | 郑元泰 | 字符串相等判断 | C++ | Compile Error | 0 MS | 0 KB | 199 | 2025-01-16 14:34:42 |
# include<iostream> using namespace std; int main(){ char s1[1001],s2[1001]; cin>>s1>>s2; if(strcmp(s1,s2)==0){ cout<<"yes"; } else cout<<"no"; return 0; }
Main.cc: In function 'int main()': Main.cc:6:20: error: 'strcmp' was not declared in this scope if(strcmp(s1,s2)==0){ ^