Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2696 邓程允 字符串相等判断 C++ Compile Error 0 MS 0 KB 222 2024-01-20 17:46:47

Tests(0/0):


Code:

# include<iostream> using namespace std; int main(){ char a[1001],b[1001]; cin>>a>>b; int c=strcmp(a,b); if(c==0){ cout<<"yes"; } else{ cout<<"no"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:21: error: 'strcmp' was not declared in this scope
     int c=strcmp(a,b);
                     ^