| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81541 | 刘泽熙 | 字符串长度判断 | C++ | Compile Error | 0 MS | 0 KB | 245 | 2024-07-12 14:39:09 |
#include <bits/stdc++.h> using namespace std; int main() { char a[150], b[150]; cin >> a >> b; s1_i = 0; s2_2 = 0; for (int i = 0; i < 151; i++) { if (s[i] != "\0") { a_l++; } else { break; } } cout << si_l; }
Main.cc: In function 'int main()':
Main.cc:7:2: error: 's1_i' was not declared in this scope
s1_i = 0;
^
Main.cc:8:2: error: 's2_2' was not declared in this scope
s2_2 = 0;
^
Main.cc:10:7: error: 's' was not declared in this scope
if (s[i] != "\0") {
^
Main.cc:11:4: error: 'a_l' was not declared in this scope
a_l++;
^
Main.cc:16:10: error: 'si_l' was not declared in this scope
cout << si_l;
^