Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74952 刘泽熙 12for循环练习II C++ Compile Error 0 MS 0 KB 149 2024-05-26 14:10:04

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int n,y; cin>>n>>y; for (int i = n; i <= ny; i+=1) { cout << i << " "; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:23: error: 'ny' was not declared in this scope
  for (int i = n; i <= ny; i+=1) {
                       ^