Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66882 周奕辰 数组输出 C++ Compile Error 0 MS 0 KB 220 2024-03-10 19:33:07

Tests(0/0):


Code:

include<iostream> using namespace std; int main(){ int n=10; int a[n]; for(int i=0;i<n;i++) { cin >> a[i]; } cout << a[i] << " " ; cout << endl; return 0; }


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include
 ^
Main.cc: In function 'int main()':
Main.cc:8:9: error: 'cin' was not declared in this scope
         cin >> a[i];
         ^
Main.cc:10:5: error: 'cout' was not declared in this scope
     cout << a[i] << " " ;
     ^
Main.cc:10:15: error: 'i' was not declared in this scope
     cout << a[i] << " " ;
               ^
Main.cc:11:13: error: 'endl' was not declared in this scope
     cout << endl;
             ^