Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
143945 徐景一 A+B 输入输出练习III C++ Compile Error 0 MS 0 KB 412 2026-01-18 08:36:39

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[100000000000000000000000],b[1000000000000000000000000000000],i,n; for(i=0;i<10000000000000000000000000000000;i++){ if(a[i]==0 && b[i]==0){ n=i; break; }else{ cin>>a[i]>>b[i]; } } for(i=0;i<n;i++){ cout<<a[i]+b[i]<<endl; } return 0; }


Run Info:

Main.cc:4:11: warning: integer constant is too large for its type
     int a[100000000000000000000000],b[1000000000000000000000000000000],i,n;
           ^
Main.cc:4:39: warning: integer constant is too large for its type
     int a[100000000000000000000000],b[1000000000000000000000000000000],i,n;
                                       ^
Main.cc:5:15: warning: integer constant is too large for its type
     for(i=0;i<10000000000000000000000000000000;i++){
               ^
Main.cc: In function 'int main()':
Main.cc:4:70: error: size of array 'b' is too large
     int a[100000000000000000000000],b[1000000000000000000000000000000],i,n;
                                                                      ^
Main.cc:6:23: error: 'b' was not declared in this scope
         if(a[i]==0 && b[i]==0){
                       ^
Main.cc:14:20: error: 'b' was not declared in this scope
         cout<