memory.cpp: In function 'void play()':
memory.cpp:9:15: warning: array subscript has type 'char' [-Wchar-subscripts]
9 | if(ap[x] > 3)
| ^
memory.cpp:10:16: warning: array subscript has type 'char' [-Wchar-subscripts]
10 | ap[x] = 0;
| ^
memory.cpp:11:17: warning: array subscript has type 'char' [-Wchar-subscripts]
11 | if(path[x] > 100)
| ^
memory.cpp:12:18: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | path[x] = 0;
| ^
memory.cpp:13:12: warning: array subscript has type 'char' [-Wchar-subscripts]
13 | ap[x]++;
| ^
memory.cpp:14:15: warning: array subscript has type 'char' [-Wchar-subscripts]
14 | if(ap[x] == 1)
| ^
memory.cpp:15:18: warning: array subscript has type 'char' [-Wchar-subscripts]
15 | path[x] = i;
| ^
memory.cpp:17:21: warning: array subscript has type 'char' [-Wchar-subscripts]
17 | if(path[x] == i - 1 && i % 2 == 0)
| ^
memory.cpp:20:29: warning: array subscript has type 'char' [-Wchar-subscripts]
20 | faceup(path[x]);
| ^
memory.cpp:24:29: warning: array subscript has type 'char' [-Wchar-subscripts]
24 | faceup(path[x]);
| ^
memory.cpp:6:29: warning: unused variable 'nr' [-Wunused-variable]
6 | int ap[100], path[100], nr;
| ^~