| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151398 | 孔声豪 | 求点积 | C++ | Compile Error | 0 MS | 0 KB | 283 | 2026-04-12 12:07:49 |
#incude <bits/stdc++.h> usig namespeak std; int main(){ int m,a[1001]={},b[1001]={},h: cin>>m; for(int i=0;i<=n;i++){ cin>>a[i]; } for(int i=0;i<=n;i++){ cin>>b[i]; } for(int i=0;i<=n;i++){ sum+=a[i]*b[1]; } cout<<sum<<endl; return 0; }
Main.cc:1:2: error: invalid preprocessing directive #incude
#incude
^
Main.cc:2:1: error: 'usig' does not name a type
usig namespeak std;
^
Main.cc: In function 'int main()':
Main.cc:4:30: error: found ':' in nested-name-specifier, expected '::'
int m,a[1001]={},b[1001]={},h:
^
Main.cc:4:29: error: 'h' has not been declared
int m,a[1001]={},b[1001]={},h:
^
Main.cc:5:4: error: qualified-id in declaration before '>>' token
cin>>m;
^
Main.cc:6:20: error: 'n' was not declared in this scope
for(int i=0;i<=n;i++){
^
Main.cc:7:2: error: 'cin' was not declared in this scope
cin>>a[i];
^
Main.cc:9:20: error: 'n' was not declared in this scope
for(int i=0;i<=n;i++){
^
Main.cc:10:2: error: 'cin' was not declared in this scope
cin>>b[i];
^
Main.cc:12:20: error: 'n' was not declared in this scope
for(int i=0;i<=n;i++){
^
Main.cc:13:2: error: 'sum' was not declared in this scope
sum+=a[i]*b[1];
^
Main.cc:15:5: error: 'cout' was not declared in this scope
cout<