Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160208 余建成 火车上的人数 C++ Compile Error 0 MS 0 KB 162 2026-09-13 10:32:47

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a,n,m,x,sc[16]={},xc[16],r[16]; cin>>a>>n>>m>>x; r[1]=r[2]==a; sc[1]=a; sc[2]=a return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:2: error: expected ';' before 'return'
  return 0;
  ^
Main.cc:4:24: warning: unused variable 'xc' [-Wunused-variable]
  int a,n,m,x,sc[16]={},xc[16],r[16];
                        ^