| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143946 | 徐景一 | A+B 输入输出练习III | C++ | Compile Error | 0 MS | 0 KB | 418 | 2026-01-18 08:37:15 |
#include<bits/stdc++.h> using namespace std; int main(){ long long 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; }
Main.cc:4:17: warning: integer constant is too large for its type
long long a[100000000000000000000000],b[1000000000000000000000000000000],i,n;
^
Main.cc:4:45: warning: integer constant is too large for its type
long long 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:76: error: size of array 'b' is too large
long long 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<