| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81632 | 陈俊洁 | 字符串长度判断 | C++ | Compile Error | 0 MS | 0 KB | 210 | 2024-07-12 14:51:43 |
#include<bits/stdc++.h> using namespace std; int main() { char s1[151],s2[151]; int s1_1,s2_1; cin>>s1>>s2; s1_l=strlen(s1); s2_l=0; if(s1_l==s2_l){ cout<<"yes"; }else{ cout<<"no"; } }
Main.cc: In function 'int main()':
Main.cc:7:2: error: 's1_l' was not declared in this scope
s1_l=strlen(s1);
^
Main.cc:8:2: error: 's2_l' was not declared in this scope
s2_l=0;
^
Main.cc:5:6: warning: unused variable 's1_1' [-Wunused-variable]
int s1_1,s2_1;
^
Main.cc:5:11: warning: unused variable 's2_1' [-Wunused-variable]
int s1_1,s2_1;
^