fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. #include<algorithm>
  4. #include<string>
  5. int main() {
  6. // your code goes here
  7. int a[5]={1,6,43,3};
  8. sort(a,a+4);
  9. cout<<a[1]<<endl;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
3