| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150996 | 杨峻熙 | 元音字母转换 | C++ | Compile Error | 0 MS | 0 KB | 393 | 2026-04-02 17:25:51 |
#include<bits/stdc++.h> using namespace std; bool isVow(char){ c=tolower(c); return c=='a'||c=='e'||c=='i'||c=='o'||c=='u'; } int main(){ int T; cin>>T; while(T--){ string s; cin>>s; string ans; for(char ch : s){ if(isVowel(ch)) ans+=toupper(ch); else ans+=tolower(ch); } cout<<ans<<endl; } return 0; }
Main.cc: In function 'bool isVow(char)':
Main.cc:4:2: error: 'c' was not declared in this scope
c=tolower(c);
^
Main.cc: In function 'int main()':
Main.cc:15:19: error: 'isVowel' was not declared in this scope
if(isVowel(ch))
^