fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5.  
  6. enum ROW
  7. {
  8. R0 = 0,
  9. R1 = 1,
  10. };
  11.  
  12.  
  13. enum COLUMN
  14. {
  15. C1 = 0,
  16. C2 = 1,
  17. };
  18.  
  19.  
  20. int main() {
  21. // your code goes here
  22. std::vector<std::vector<double>> alpha { { 1.46774172175387E-005, 2.000064981},
  23. { 3.46774172175387E-005, 4.59485786231327E-005} };
  24. ROW row = R0;
  25. COLUMN column = C2;
  26. double p = alpha[row][column];
  27. std::cout << p << std::endl;
  28. return 0;
  29. }
Success #stdin #stdout 0s 3228KB
stdin
Standard input is empty
stdout
2.00006