| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 5159 | 刘轩宁 | 12输出英文字母II | C++ | Compile Error | 0 MS | 0 KB | 153 | 2024-11-02 20:50:22 |
#include <iostream> using namespace std; int main(){ int n,m,i; cin>>n>>m; for(i==n;i<=m;i++){ cout<<char("a"+i-1)<<" "; } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:7: warning: statement has no effect [-Wunused-value]
for(i==n;i<=m;i++){
^
Main.cc:7:21: error: cast from 'const char*' to 'char' loses precision [-fpermissive]
cout<<char("a"+i-1)<<" ";
^