| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123702 | 张铖睿 | 元音字母转换 | C++ | Compile Error | 0 MS | 0 KB | 365 | 2025-07-10 08:54:51 |
#include<bits/stdc++.h> using namespace std; int main() { int n; char c[50]; getchar(); for(int i=1;i<=n;i++) { cin.getline(c,50); for(int j=0;j<strlen;j++) { if(c[j]>='A' && c[j]<='Z') c[j]=c[j]+32; if(c[j]=='a' || c[j]=='e' || c[j]=='i' || c[j]=='o' || c[j]=='u') c[j]=c[j]-32; } cout<<c<<endl; } return 0; }
Main.cc: In function 'int main()': Main.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(int j=0;j