#include <stdio.h>
// グローバル変数aを初期値0で定義
int a = 0;
void func();
int main() {
int b = 5; // ローカル変数bを初期値5
for (int i = 0; i < b; i++) {
func();
}
// グローバル変数aの値を表示
return 0; //終わり
}
// func関数の定義
void func() {
a++;
}
I2luY2x1ZGUgPHN0ZGlvLmg+IAoKLy8g44Kw44Ot44O844OQ44Or5aSJ5pWwYeOCkuWIneacn+WApDDjgaflrprnvqkKaW50IGEgPSAwOwoKCnZvaWQgZnVuYygpOwoKaW50IG1haW4oKSB7CiAgICBpbnQgYiA9IDU7IC8vIOODreODvOOCq+ODq+WkieaVsGLjgpLliJ3mnJ/lgKQ1CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBiOyBpKyspIHsKICAgICAgICBmdW5jKCk7IAogICAgfQoKICAgIC8vIOOCsOODreODvOODkOODq+WkieaVsGHjga7lgKTjgpLooajnpLoKICAgIHByaW50ZigiYeOBruWApDogJWRcbiIsIGEpOwoKICAgIHJldHVybiAwOyAvL+e1guOCj+OCigp9CgovLyBmdW5j6Zai5pWw44Gu5a6a576pCgp2b2lkIGZ1bmMoKSB7CiAgICBhKys7IAp9