fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <typename Container, typename Index>
  5. auto DoSomething(Container& c, Index i) -> decltype(c[i])
  6. {
  7. return c[i];
  8. }
  9.  
  10.  
  11. int main() {
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5536KB
stdin
Standard input is empty
stdout
Standard output is empty