#include <iostream>
#include <string>
#include <vector>

int main()
{
    // Conversion of Java : String op="text1 "+z+" text2"+j+" text3"+i+" "+Arrays.toString(vol);
    
    int i = 0, j = 0, z = 0;
    std::vector<int> arr;
    arr.push_back(15);
    arr.push_back(18);
    arr.push_back(0);

    std::string result = "text1 " + std::to_string(z);
    result += " text2" + std::to_string(j);
    result += " text3" + std::to_string(i) + " ";

    for ( auto& el : arr )
        result += std::to_string(el);

    std::cout << "The result string is :" << result << std::endl;

    return 0;
}