Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155914 卢语宸 字符串相等判断 C++ Compile Error 0 MS 0 KB 242 2026-06-14 15:03:12

Tests(0/0):


Code:

#include<iostream> #include<cstring> char a[1000],b[1000]; int q; using namespace std; int main(){ q=strcp(a,b); if(q>0){ cout<<"no"; }else if(q<0){ cout<<"no"; }else{ cout<<"yes"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:15: error: 'strcp' was not declared in this scope
    q=strcp(a,b);
               ^