Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73828 王佰辉 数组输出 C++ Compile Error 0 MS 0 KB 357 2024-05-19 17:52:09

Tests(0/0):


Code:

int main() { int numbers[10]; cout << "请输入10个整数:" << endl; for(int i = 0; i < 10; ++i) { cin >> numbers[i]; } cout << "您输入的整数是:" << endl; for(int i = 0; i < 10; ++i) { cout << numbers[i] << " "; } cout << endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:3:5: error: 'cout' was not declared in this scope
     cout << "请输入10个整数:" << endl;
     ^
Main.cc:3:40: error: 'endl' was not declared in this scope
     cout << "请输入10个整数:" << endl;
                                        ^
Main.cc:7:9: error: 'cin' was not declared in this scope
         cin >> numbers[i];
         ^