Main.cc: In function ‘int countSequences(int)’:
Main.cc:3:9: error: ‘memo’ was not declared in this scope
if (memo[k] != 0) {
^~~~
Main.cc:17:5: error: ‘memo’ was not declared in this scope
memo[k] = total;
^~~~
Main.cc: In function ‘int main()’:
Main.cc:23:5: error: ‘cin’ was not declared in this scope
cin >> n;
^~~
Main.cc:23:5: note: suggested alternative: ‘main’
cin >> n;
^~~
main
Main.cc:26:5: error: ‘memo’ was not declared in this scope
memo.resize(n + 1, 0);
^~~~
Main.cc:29:5: error: ‘cout’ was not declared in this scope
cout << countSequences(n) << endl;
^~~~
Main.cc:29:34: error: ‘endl’ was not declared in this scope
cout << countSequences(n) << endl;
^~~~
Main.cc:29:34: note: suggested alternative: ‘enum’
cout << countSequences(n) << endl;
^~~~
enum