[ create a new paste ] login | about

Link: http://codepad.org/8Eszlf5T    [ raw code | fork ]

C++, pasted on Feb 28:
#include <vector>
#include <set>
#include <map>

std::map<std::vector<int>,std::set<std::pair<int, int> > > tBoxes;
const int mini = 0;
const int minj = 2;
const int mink = 1;
const int maxi = 3;
const int maxj = 4;
const int maxk = 5;

int main() {
  std::vector<int> t(3,0);
  std::set<std::pair<int, int> >::iterator it;

  for(int i = mini; i <= maxi; i++){
    t[0] = i;
    for (int j = minj; j <= maxj; j++){
      t[1] = j;
      for (int k = mink; k <= maxk; k++){
        t[2] = k;
        it = tBoxes[t].begin();
        while (it != tBoxes[t].end()){
          it++;
        }
      }
    }
  }
  return 0;
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: