Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153649 陈棋 排列组合 C++ Compile Error 0 MS 0 KB 282 2026-05-23 16:48:59

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a[]={2,4,6,8}; int cnt=0; for(int i=0;i<4;i++){ for(int j=0;j<4;j++){ for(int k=0;k<4;k++){ if(i!=j&&j!=k&&i!=k){ cout<<a[i]<<a[j]<<a[k]<<endl; cnt++; } } } } cout<<cnt<<endl;


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:17: error: expected '}' at end of input
  cout<