Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
84439 刘泽熙 19选班长 C++ Compile Error 0 MS 0 KB 233 2024-07-16 09:17:39

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[10]={3,4,,2,1,7,9,8,0,5}; int b[10]; for(int i=0;i<1;i++){ b[a[i]]++; } for(int j=0;j<10;j++){ while(b[j>0]){ cout<<b[j]<<' '; b[j]--; } } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:17: error: expected primary-expression before ',' token
  int a[10]={3,4,,2,1,7,9,8,0,5};
                 ^