memory.cpp: In function 'void ccps()':
memory.cpp:21:5: error: 'ios_base' has not been declared
21 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
memory.cpp:22:5: error: 'cin' was not declared in this scope
22 | cin.tie(0);cout.tie(0);
| ^~~
memory.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include "memory.h"
+++ |+#include <iostream>
3 | using namespace std;
memory.cpp:22:16: error: 'cout' was not declared in this scope
22 | cin.tie(0);cout.tie(0);
| ^~~~
memory.cpp:22:16: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
memory.cpp:23:8: error: 'fopen' was not declared in this scope
23 | if(fopen(NAME".inp","r")) {
| ^~~~~
memory.cpp:3:1: note: 'fopen' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
2 | #include "memory.h"
+++ |+#include <cstdio>
3 | using namespace std;
memory.cpp:24:32: error: 'stdin' was not declared in this scope
24 | freopen(NAME".inp","r",stdin);
| ^~~~~
memory.cpp:24:32: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
memory.cpp:24:9: error: 'freopen' was not declared in this scope
24 | freopen(NAME".inp","r",stdin);
| ^~~~~~~
memory.cpp:25:32: error: 'stdout' was not declared in this scope
25 | freopen(NAME".out","w",stdout);
| ^~~~~~
memory.cpp:25:32: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
memory.cpp: In function 'void play()':
memory.cpp:9:21: error: 'memset' was not declared in this scope
9 | #define mset(x,val) memset(x,val,sizeof(x))
| ^~~~~~
memory.cpp:30:5: note: in expansion of macro 'mset'
30 | mset(firstPos,-1);
| ^~~~
memory.cpp:3:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
2 | #include "memory.h"
+++ |+#include <cstring>
3 | using namespace std;
memory.cpp:33:31: error: 'i' was not declared in this scope
33 | char firstCh = faceup(i);
| ^