Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68789 陈俊洁 12输出英文字母II C++ Compile Error 0 MS 0 KB 156 2024-03-24 14:55:30

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int main () { int n,m; cin>>n>>m; int i; for(i=n;i<=m;i++){ char(1+'a'-1)endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:16: error: expected ';' before 'endl'
   char(1+'a'-1)endl;
                ^
Main.cc:8:20: warning: statement has no effect [-Wunused-value]
   char(1+'a'-1)endl;
                    ^