Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149972 王峻熙 数组输出 C++ Compile Error 0 MS 0 KB 239 2026-03-21 15:00:19

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:25: error: lvalue required as increment operand
         for(int j=0;j<10++){
                         ^
Main.cc:9:27: error: expected ';' before ')' token
         for(int j=0;j<10++){
                           ^