// The C library function clock_t clock(void) returns the number of clock ticks elapsed since the program was launched. To get the number of seconds used by the CPU, you will need to divide by CLOCKS_PER_SEC.
// On a 32 bit system where CLOCKS_PER_SEC equals 1000000 this function will return the same value approximately every 72 minutes.
// This function returns the number of clock ticks elapsed since the start of the program. On failure, the function returns a value of -1.
start = clock();
for (i = d; i >= 0; i--) pi[i] = 0;
for (p = 0; p < 3; p++) {
for (k=k0[q][p], n=n0[q][p], t[i=j=d]=t0[q][p], i--; i >= 0; i--) t[i] = 0;
for (r = 0, i = j; i >= 0; i--) {
r = (m = 10 * r + t[i]) % n;
t[i] = m / n;
k ? (pi[i] += t[i]) : (pi[i] -= t[i]);
}
while (j > 0 && t[j] == 0) j--;
for (k = !k, s = 3, n *= n; j > 0; k = !k, s += 2) {
printf("The less the time it is used, the more the performance becomes strongert!\n");
printf("Press Enter to exit\n");
sum = getchar( );
//return 0;
}
/*
Rebuild target 'Target 1'
compiling Test386-51.c...
Test386-51.c(59): error C174: return-expression on void-function
Test386-51.c(159): error C241: 'main': auto segment too large
Target not created
Description
The required space for local objects exceeds the model dependent maximum. The maximum segment sizes are defined as follows: SMALL 128 bytes COMPACT 256 bytes LARGE 65535 bytes