| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79089 | 李雨昊 | 19斯诺克比赛 | C++ | Compile Error | 0 MS | 0 KB | 392 | 2024-06-30 10:09:05 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<iomanip> # include<stdio.h> using namespace std; int main() { int a[1001]={0}; for(int i=1;i<=7;i++){ cin>>a[i]; } int mxx,=0,gbb =0; for(int i=1;i<=7;i++){ if(a[i]>0){ gbb = i; } } int sum=0; sum = a[1]*(1+gbb); for(int i=2;i<=7;i++){ sim += a[i]*i; } cout<<sum; }
Main.cc: In function 'int main()':
Main.cc:13:10: error: expected unqualified-id before '=' token
int mxx,=0,gbb =0;
^
Main.cc:16:4: error: 'gbb' was not declared in this scope
gbb = i;
^
Main.cc:20:16: error: 'gbb' was not declared in this scope
sum = a[1]*(1+gbb);
^
Main.cc:22:3: error: 'sim' was not declared in this scope
sim += a[i]*i;
^
Main.cc:13:6: warning: unused variable 'mxx' [-Wunused-variable]
int mxx,=0,gbb =0;
^