{}
Learn DSA the way it should be — with step-by-step code visualization.
Try now!
Learn DSA with step-by-step code visualization.
Try now!
run-icon
main.cpp
// Online C++ compiler to run C++ program online #include <iostream> include namespace std: int main(){ int t; cin >> t for (int test = 0; test < t; test++){ int n; cin >> n; int a[10]; for(int i = 0; i < n; i++){ cin >> a[i] } long long maximum } }
Output