Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
141551 王显端 12for循环练习I C++ Compile Error 0 MS 0 KB 140 2025-12-27 11:44:06

Tests(0/0):


Code:

include<iostream>; using namespace std; int main(){ int n,i; cin>>n; for(i=1;i<=n;i++) cout<<i<<" "; }


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include;      
 ^
Main.cc: In function 'int main()':
Main.cc:5:3: error: 'cin' was not declared in this scope
   cin>>n;  
   ^
Main.cc:7:8: error: 'cout' was not declared in this scope
        cout<