Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1171 李羽 12输出英文字母 C++ Compile Error 0 MS 0 KB 179 2023-08-21 11:39:52

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ for(char i=a;i<=z;i++){ cout<<i<<" "; } cout<<endl; for(char i=Z;i>=A;i--){ cout<<i<<" "; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:13: error: 'a' was not declared in this scope
  for(char i=a;i<=z;i++){
             ^
Main.cc:4:18: error: 'z' was not declared in this scope
  for(char i=a;i<=z;i++){
                  ^
Main.cc:8:13: error: 'Z' was not declared in this scope
  for(char i=Z;i>=A;i--){
             ^
Main.cc:8:18: error: 'A' was not declared in this scope
  for(char i=Z;i>=A;i--){
                  ^