| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154970 | 刘睿霖 | 12输出英文字母 | C++ | Compile Error | 0 MS | 0 KB | 210 | 2026-05-31 11:50:47 |
#include<bits/stdc++.h> 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; }
Main.cc: In function 'int main()':
Main.cc:6:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
for(i="a";i<="z";i++)
^
Main.cc:6:18: warning: comparison with string literal results in unspecified behaviour [-Waddress]
for(i="a";i<="z";i++)
^
Main.cc:6:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:9:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
for(i="Z";i>="A";i--)
^
Main.cc:9:18: warning: comparison with string literal results in unspecified behaviour [-Waddress]
for(i="Z";i>="A";i--)
^
Main.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]