fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <array>
  4. using namespace std;
  5.  
  6. std::array<std::string, 4> lookup_str = {"test Str0", "test Str1", "test Str2", "test Str3"};
  7.  
  8. int main() {
  9.  
  10. std::cout << lookup_str[2] << std::endl;
  11.  
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
test Str2