fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int arr[] = {3,56,-4,89,-55,60,36,-55,90,-33};
  6. int max = arr[0];
  7. for (int i = 0; i < 0; ++i)
  8. {
  9. if (arr[i] > max)
  10. {
  11. max = arr[i];
  12. }
  13. }
  14.  
  15.  
  16.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:13:2: error: expected ‘}’ at end of input
  }
  ^
prog.cpp:4:1: note: to match this ‘{’
 {
 ^
stdout
Standard output is empty