Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101788 | 胡海峰老师 | 12输出英文字母 | C++ | Compile Error | 0 MS | 0 KB | 249 | 2024-12-18 20:58:35 |
using namespace std; int main(){ int i; for(i=97; i<=97+25; i++) cout<< (char)i << " "; cout<< endl; for(i = 65+25 ; i>= 65 ;i--) cout<< (char)i << " "; return 0; }
Main.cc: In function 'int main()': Main.cc:6:9: error: 'cout' was not declared in this scope cout<< (char)i << " "; ^ Main.cc:8:5: error: 'cout' was not declared in this scope cout<< endl; ^ Main.cc:8:12: error: 'endl' was not declared in this scope cout<< endl; ^