Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
110079 | 范恒恺 | 12输出英文字母 | C++ | Compile Error | 0 MS | 0 KB | 184 | 2025-02-14 13:56:51 |
#include<bits/stdc++.h> using namespace std; int main(){ for(char i='a';i<='z';i++){ cout<<i<<" "; } cout<<endl; for(char x='Z';i>='A';--) { cout<<x<<" "; } return 0; }
Main.cc: In function 'int main()': Main.cc:8:16: error: 'i' was not declared in this scope for(char x='Z';i>='A';--) { ^ Main.cc:8:25: error: expected primary-expression before ')' token for(char x='Z';i>='A';--) { ^