memory.cpp: In function 'void play()':
memory.cpp:9:39: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'int'
9 | for (vector<int> v : p) faceup(p[1]); faceup(p[2]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type {aka std::vector<int>}
In file included from memory.cpp:1:
grader.h:1:17: note: initializing argument 1 of 'char faceup(int)'
1 | char faceup(int C);
| ~~~~^
memory.cpp:9:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
9 | for (vector<int> v : p) faceup(p[1]); faceup(p[2]);
| ^~~
memory.cpp:9:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
9 | for (vector<int> v : p) faceup(p[1]); faceup(p[2]);
| ^~~~~~
memory.cpp:9:53: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'int'
9 | for (vector<int> v : p) faceup(p[1]); faceup(p[2]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type {aka std::vector<int>}
In file included from memory.cpp:1:
grader.h:1:17: note: initializing argument 1 of 'char faceup(int)'
1 | char faceup(int C);
| ~~~~^