| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155633 | 胡誉骞 | 求点积 | C++ | Compile Error | 0 MS | 0 KB | 267 | 2026-06-08 17:24:21 |
#include <iostream> using namespace std; int main(){ int n; cin>>n; int a[n],b[n]; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ cin>>b[i;] } long long sum=0; for(int i=0;i<n;i++) sum=sum+a[i]*b[i]; } cout<<sum; }
Main.cc: In function 'int main()':
Main.cc:11:10: error: expected ']' before ';' token
cin>>b[i;]
^
Main.cc:11:11: error: expected primary-expression before ']' token
cin>>b[i;]
^
Main.cc: At global scope:
Main.cc:17:2: error: 'cout' does not name a type
cout<