online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <bits/stdc++.h> using namespace std; #define maxarray 100005 #define int long long #define el "\n" #define vtmc ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define snpos string::npos #define db double void solve() { int n; double s=0; cin>>n; vector<double> a(n),b(n); for(db& i : a)cin>>i; for(db& i : b)cin>>i; for(int i=0;i<n;i++) s += (a[i]-b[i])*(a[i]-b[i]); double d = sqrt(s); cout<<setprecision(17)<<d; } signed main() { vtmc int t=1; // cin>>t; while(t-->0) { solve(); } }

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