MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/array-2d/prefix_sum.cpp:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 #endif
25}
26int main(){
27 initial();
28 int n;
29 cin>>n;
30 int arr[n];
31 for (int i = 0; i < n; ++i)
32 {
33 cin>>arr[i];
34 }
35 cout<<prefix_sum(arr,n);
36
37 return 0;
38}

Callers

nothing calls this directly

Calls 2

initialFunction · 0.70
prefix_sumFunction · 0.70

Tested by

no test coverage detected