fork download
  1. /*
  2.  * main.cpp
  3.  *
  4.  * Created on: 13/09/2011
  5.  * Author: Cairo
  6.  */
  7.  
  8.  
  9.  
  10.  
  11.  
  12. #include "boost/multi_array.hpp"
  13. #include <iostream>
  14. using namespace std;
  15.  
  16. boost::multi_array<int, 2> ma;
  17.  
  18. boost::multi_array<int, 2> func()
  19. {
  20. boost::multi_array<int, 2> t;
  21. for (int x = 0; x < 10; x++)
  22. {
  23. for (int z = 0; z < 10; z++)
  24. {
  25. t[x][z] = 1;
  26. }
  27. }
  28. return t;
  29. }
  30.  
  31. int main()
  32. {
  33. ma = func();
  34. return 0;
  35. }
  36.  
Runtime error #stdin #stdout 0s 2860KB
stdin
Standard input is empty
stdout
Standard output is empty