#include <iostream>
#include <string>
using namespace std;

void attack(string name = "名前不明", int loop = 1)
{
    for (int i = 0; i < loop; i++)
    {
        cout << name << "の攻撃！" << endl;
    }
}

int main()
{
    attack();
    attack("スライム");
    attack("勇者", 3);
}
