fork download
  1. #include <iostream>
  2. #include <array>
  3. using namespace std;
  4.  
  5. std::array<uint8_t,2> getSth() {
  6. std::array<uint8_t,2> a = {5, 2};
  7. return a;
  8. }
  9.  
  10.  
  11. int main() {
  12. std::array<uint8_t,2> b = getSth();
  13. cout << (int)b[0] << endl;
  14. cout << (int)b[1] << endl;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
5
2