Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62186 张江鹏 字符串长度判断 C++ Compile Error 0 MS 0 KB 223 2023-12-17 17:32:33

Tests(0/0):


Code:

#include <stdio.h> using namespace std; int main(){ char a[100000000],q[1000000000001]; cin>>a>>q; int n=strlen(s); int n1=strlen(q); if(n1==n){ cout<<"yes"; }else{ cout<<"no"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:2: error: 'cin' was not declared in this scope
  cin>>a>>q;
  ^
Main.cc:6:15: error: 's' was not declared in this scope
  int n=strlen(s);
               ^
Main.cc:6:16: error: 'strlen' was not declared in this scope
  int n=strlen(s);
                ^
Main.cc:9:3: error: 'cout' was not declared in this scope
   cout<<"yes";
   ^
Main.cc:11:3: error: 'cout' was not declared in this scope
   cout<<"no";
   ^