| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81527 | 石晋骁 | 字符串长度判断 | C++ | Compile Error | 0 MS | 0 KB | 390 | 2024-07-12 14:35:53 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[151],b[151]; int al,bl; cin >> a >> b; al = 0; bl = 0; for(int i = 0;i < 151;i++){ if(a[i] != '\0'){ al++; }else{ break; } } for(int j = 0;j < 151;j++){ if(b[j] != '\0'){ bl++; }else{ break; } } if(al != bl){ cout << no; }else{ cout << yes; } return 0; }
Main.cc: In function 'int main()':
Main.cc:24:11: error: 'no' was not declared in this scope
cout << no;
^
Main.cc:26:11: error: 'yes' was not declared in this scope
cout << yes;
^