| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82429 | 石晋骁 | 31忽略大小写的字符串比较 | C++ | Compile Error | 0 MS | 0 KB | 479 | 2024-07-13 11:20:25 |
#include<bits/stdc++.h> using namespace std; char a[80]; char b[80]; int main(){ int al,bl; al = strlen(a); bl = strlen(b); cin >> a; cin >> b; for(int i =0;i < al;i++){ if(a[i] >= 'A' && a[i] <= 'Z'){ a[i] = a[i+32]; } } for(int j =0;j < bl;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:17:8: error: 'i' was not declared in this scope
if(b[i] >= 'A' && b[i] <= 'Z'){
^
Main.cc:21:5: error: 'aa' was not declared in this scope
if(aa > bb){
^
Main.cc:21:10: error: 'bb' was not declared in this scope
if(aa > bb){
^