fork download
  1. #include <iostream>
  2. #include <algorithm>
  3.  
  4. using namespace std;
  5.  
  6. int main () {
  7. int first_max = -1e9, n;
  8. cin >> n;
  9. for (int i = 0; i < n; ++i) {
  10. int val;
  11. cin >> val;
  12. first_max = max(first_max, val);
  13. }
  14. cout << mx;
  15. return 0;
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:14:10: error: ‘mx’ was not declared in this scope
  cout << mx;
          ^~
stdout
Standard output is empty