| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82427 | 石晋骁 | 31忽略大小写的字符串比较 | C++ | Compile Error | 0 MS | 0 KB | 430 | 2024-07-13 11:18:24 |
#include<bits/stdc++.h> using namespace std; char a[80]; char b[80]; int main(){ cin >> a; cin >> b; for(int i =0;i < sl;i++){ if(a[i] >= 'A' && a[i] <= 'Z'){ a[i] = a[i+32]; } } for(int j =0;j < sl;j++){ if(b[i] >= 'A' && b[i] <= 'Z'){ b[i] = b[i+32]; } } if(aa > bb){ cout << ">"; }else if(aa < bb ){ cout << "<"; }else{ cout << "="; } return 0; }
Main.cc: In function 'int main()':
Main.cc:8:19: error: 'sl' was not declared in this scope
for(int i =0;i < sl;i++){
^
Main.cc:13:22: error: 'sl' was not declared in this scope
for(int j =0;j < sl;j++){
^
Main.cc:14:8: error: 'i' was not declared in this scope
if(b[i] >= 'A' && b[i] <= 'Z'){
^
Main.cc:18:5: error: 'aa' was not declared in this scope
if(aa > bb){
^
Main.cc:18:10: error: 'bb' was not declared in this scope
if(aa > bb){
^