#include<iostream>
using std::cout;
int main()
{
int x = 5 + 10 * 20 / 2;
double y = 5 + 10 * 20 / 2;
cout << x << " " << y;
return 0;
}
#include<iostream>
int main()
{
int num;
while (std::cin >> num&&num != 42);
return 0;
}
#include<iostream>
int main()
{
int i ; double b;
b = i = 3.5;
std::cout << b << std::endl
<< i;
return 0;
}
#include<iostream>
#include<vector>
using namespace std;
int main()
{
vector<int> it(0, 10), *iter = ⁢
cout << (*iter).empty();
return 0;
}
#include<iostream>
#include<vector>
using std::vector;
using std::cout;
int main()
{
vector<int> nint{ 12, 34, 2, 54, 55, 345 };
for (auto &i : nint)
{
if (i % 2 != 0 ? (i = i*i) : i = i)
cout << i << " ";
}
return 0;
}