#include <stdio.h>
int main(void) {
short int d;
int i;
for (i = 32764; i < 32773; i++) {
d = i; // ループ内で d に代入
printf("i=%d, d=%d\n", i
, d
); // ここで出力 }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICBzaG9ydCBpbnQgZDsKICAgIGludCBpOwoKICAgIGZvciAoaSA9IDMyNzY0OyBpIDwgMzI3NzM7IGkrKykgewogICAgICAgIGQgPSBpOyAgLy8g44Or44O844OX5YaF44GnIGQg44Gr5Luj5YWlCiAgICAgICAgcHJpbnRmKCJpPSVkLCBkPSVkXG4iLCBpLCBkKTsgIC8vIOOBk+OBk+OBp+WHuuWKmwogICAgfQoKICAgIHJldHVybiAwOwp9
i=32764, d=32764
i=32765, d=32765
i=32766, d=32766
i=32767, d=32767
i=32768, d=-32768
i=32769, d=-32767
i=32770, d=-32766
i=32771, d=-32765
i=32772, d=-32764