#include <iostream> using namespace std; int main() { int arr[] = {3,56,-4,89,-55,60,36,-55,90,-33}; int max = arr[0]; for (int i = 0; i < 0; ++i) { if (arr[i] > max) { max = arr[i]; } }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:13:2: error: expected ‘}’ at end of input } ^ prog.cpp:4:1: note: to match this ‘{’ { ^
Standard output is empty