Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
136705 李折曦 求点积 C++ Compile Error 0 MS 0 KB 259 2025-11-15 14:57:50

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a[1001],b[1001],n; long long sum=0; for(int i =1;I<=n){ cin>>a[i]; } for(int i =1;I<=n){ cin>>b[i]; } for(int i =1;I<=n){ sum+=a[i]*b[i]; } return 0; cout<<sum; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:15: error: 'I' was not declared in this scope
  for(int i =1;I<=n){
               ^
Main.cc:6:19: error: expected ';' before ')' token
  for(int i =1;I<=n){
                   ^
Main.cc:9:15: error: 'I' was not declared in this scope
  for(int i =1;I<=n){
               ^
Main.cc:9:19: error: expected ';' before ')' token
  for(int i =1;I<=n){
                   ^
Main.cc:12:15: error: 'I' was not declared in this scope
  for(int i =1;I<=n){
               ^
Main.cc:12:19: error: expected ';' before ')' token
  for(int i =1;I<=n){
                   ^