Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
154004 王晏林 19斯诺克比赛 C++ Compile Error 0 MS 0 KB 313 2026-05-24 12:00:19

Tests(0/0):


Code:

cinclude<bits/stdc++.h> using namespace std; int main(){ int i,sum=0,t[8]={}; for(int i=1;i<=7;i++)cin>>t[i]; if(t[1]!=0){ i=7; while(t[i]==0)i--; if(i==1){ cout<<1<<endl; return 0; } else sum+=t[1]*(1+i); } for(int j=2;j<=7;j++)sum+=t[j]*j; cout<<sum<<endl; return 0; }


Run Info:

Main.cc:1:1: error: 'cinclude' does not name a type
 cinclude
 ^
Main.cc: In function 'int main()':
Main.cc:5:23: error: 'cin' was not declared in this scope
  for(int i=1;i<=7;i++)cin>>t[i]; 
                       ^
Main.cc:10:4: error: 'cout' was not declared in this scope
    cout<<1<