elder.cpp: In function 'int main()':
elder.cpp:11:4: warning: array subscript has type 'char' [-Wchar-subscripts]
x[a] = 1;
^
elder.cpp:18:10: warning: array subscript has type 'char' [-Wchar-subscripts]
if (x[c]==0){
^
elder.cpp:19:7: warning: array subscript has type 'char' [-Wchar-subscripts]
x[c]=1;
^
elder.cpp:25:9: warning: iteration 30 invokes undefined behavior [-Waggressive-loop-optimizations]
if (x[i] == 1){
~~~^
elder.cpp:24:20: note: within this loop
for (int i = 'A'; i<100;i++){
~^~~~
elder.cpp:26:4: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized]
d++;
~^~