/in/foo.cc: In function 'int main()':
/in/foo.cc:11:12: error: missing template arguments before 'order'
vector order = {0, 1, 2};
^~~~~
/in/foo.cc:15:26: error: 'order' was not declared in this scope
string t = a[order[0]];
^~~~~
/in/foo.cc:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < t.length(); ++j)
~~^~~~~~~~~~~~
/in/foo.cc:25:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < t.length(); ++j)
~~^~~~~~~~~~~~
/in/foo.cc:34:26: error: 'order' was not declared in this scope
next_permutation(order.begin(), order.end());
^~~~~