Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6263 | 邓小龙 | 字符串相等判断 | C++ | Compile Error | 0 MS | 0 KB | 190 | 2025-01-16 14:46:27 |
# 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) ^