fork(6) download
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a, b, c, d;
  7. cin >> a >> b >> c >> d;
  8. cout << std::max({a,b,c,d}) << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3464KB
stdin
1 2 3 4
stdout
4