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

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:3: error: 'cout' was not declared in this scope
   cout<i<<" ";
   ^
Main.cc:6:2: error: 'cout' was not declared in this scope
  cout<<endl;
  ^
Main.cc:6:8: error: 'endl' was not declared in this scope
  cout<<endl;
        ^