summaryrefslogtreecommitdiff
path: root/3p27.cpp
blob: f367538844b84dc35e63fc926a55250dc7f4ff47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <iostream>
#include <vector>

/*
 *
 * 3.27
 *
 *
 */

using std::string;
using std::cout;
using std::cin;
using std::cerr;
using std::clog;
using std::endl;
using std::vector;

int text_size() {

	return 9900;
}

int main () {

	//unsigned buf_size = 1024;
	//int ia1[buf_size]; // illegal
	int ia2[4 * 7 - 14]; // legal
	//int ia3[text_size()]; // illegal, would be legal if text_size returned constexpr
	//char st[11] = "fundamental"; // illegal

	ia2[0] = 1;
	cout << ia2[0] << endl;
	return 0;
}