```cpp
include <iostream>
using namespace std;
int main() {
int x = 5;
cout << (x << 1);
return 0;
}
```
int sum = 0;
for (int i=1; i<5; i++) {
if (i % 2 == 0) continue;
sum += i;
int a=3, b=4;
a = b;
b = a;
cout << a << " " << b;
程序1
int n, sum = 0;
cin >> n;
while (n) {
sum += n % 10;
n /= 10;
cout << sum;
程序2
int a, b;
cin >> a >> b;
int c = a ^ b;
a = a ^ c;
b = b ^ c;
程序3
int f(int n) {
if (n <= 1) return n;
return f(n-1) + f(n-2);
int n;
cout << f(n);
程序1(判断质数)
include <cmath>
bool isPrime(int n) {
if (n <= 1) return false;
for (int i = 2; i <= ______; i++) { // 31
if (n % i == 0) return false;
return true;
cout << (isPrime(n) ? "Yes" : "No");
程序2(选择排序)
int n, a[100];
for (int i=0; i<n; i++) cin >> a[i];
for (int i=0; i<n-1; i++) {
int min_idx = i;
for (int j=i+1; j<n; j++) {
if (a[j] < a[min_idx]) ______; // 32
swap(a[i], a[min_idx]);
// 输出略
程序3(二分查找)
int binarySearch(int arr[], int l, int r, int x) {
while (l <= r) {
int mid = l + (r - l) / 2;
if (arr[mid] == x) return mid;
if (arr[mid] < x) l = mid + 1;
else ______; // 33
return -1;
// 主函数略