online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<bits/stdc++.h> using namespace std; int main() { long t,i,a[100000],j,k,n; cin >>t; int A=0,B=0; for(i=0;i<t;i++) { cin>>n; for(j=0;j<n;j++) { cin>>a[j]; } B=(a[0]+a[1]); for(j=0;j<n;j++) { for(k=1;k<n;k++) { A=a[j]+a[k]; if(A<B) { B=A; } } } cout<<B<<endl; } return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue