Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2694 | 孙浚轩 | 字符串相等判断 | C++ | Compile Error | 0 MS | 0 KB | 220 | 2024-01-20 17:45:43 |
#include<iostream> using namespace std; int main(){ char a[100],b[100]; int flag; cin>>a>>b; flag=strcmp(a,b); if(flag==0) cout<<"yes"; else cout<<"no"; return 0; }
Main.cc: In function 'int main()': Main.cc:7:20: error: 'strcmp' was not declared in this scope flag=strcmp(a,b); ^