Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98917 张运衡 14慈善募捐 C++ Compile Error 0 MS 0 KB 152 2024-11-23 17:41:07

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,a,i; for(n=0;n<=100000;i=0;i<=1000;i++){ cin>>n; a=a+i; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:23: error: expected ')' before ';' token
  for(n=0;n<=100000;i=0;i<=1000;i++){
                       ^
Main.cc:5:25: warning: statement has no effect [-Wunused-value]
  for(n=0;n<=100000;i=0;i<=1000;i++){
                         ^
Main.cc:5:35: error: expected ';' before ')' token
  for(n=0;n<=100000;i=0;i<=1000;i++){
                                   ^
Main.cc:4:11: warning: unused variable 'a' [-Wunused-variable]
     int n,a,i;
           ^