fork download
  1. #include <iostream>
  2. #include <map>
  3.  
  4. struct A{
  5. static std::map<int, int> M;
  6. };
  7.  
  8. std::map<int,int> cs()
  9. {
  10. std::map<int, int> m;
  11. ;
  12.  
  13. m[1] = 3;
  14. return m;
  15. }
  16.  
  17. std::map<int,int> A::M = cs();
  18.  
  19.  
  20.  
  21. int main() {
  22. // your code goes here
  23. return 0;
  24. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty