|
|
GCC output: 624 625 Expected output: 624 624 |
|
|
echo g++ write && g++ -std=c++14 -O3 -Wall -Wextra -pedantic-errors main.cpp -lsupc++ && ./a.out write twister.txt echo clang++ read && clang++ -std=c++14 -stdlib=libc++ -O3 -Wall -Wextra -pedantic-errors main.cpp -lsupc++ && ./a.out read twister.txt echo g++ read && g++ -std=c++14 -O3 -Wall -Wextra -pedantic-errors main.cpp -lsupc++ && ./a.out read twister.txt echo --------------- echo clang++ write && clang++ -std=c++14 -stdlib=libc++ -O3 -Wall -Wextra -pedantic-errors main.cpp -lsupc++ && ./a.out write twister.txt echo g++ read && g++ -std=c++14 -O3 -Wall -Wextra -pedantic-errors main.cpp -lsupc++ && ./a.out read twister.txt echo clang++ read && clang++ -std=c++14 -stdlib=libc++ -O3 -Wall -Wextra -pedantic-errors main.cpp -lsupc++ && ./a.out read twister.txt g++ write 2333906440 2882591512 1195587395 1769725799 1823289175 2260795471 3628285872 638252938 20267358 673068980 clang++ read 2333906440 2882591512 1195587395 1769725799 1823289175 2260795471 3628285872 638252938 20267358 673068980 g++ read 2333906440 2882591512 1195587395 1769725799 1823289175 2260795471 3628285872 638252938 20267358 673068980 --------------- clang++ write 2333906440 2882591512 1195587395 1769725799 1823289175 2260795471 3628285872 638252938 20267358 673068980 g++ read 2333906440 2882591512 1195587395 1769725799 1823289175 2260795471 3628285872 638252938 20267358 673068980 clang++ read 2333906440 2882591512 1195587395 1769725799 1823289175 2260795471 3628285872 638252938 20267358 673068980 |
The textual representation of xi consists of the values of Xi−n , . . . , Xi−1 , in that order. |
With os.fmtflags set to ios_base::dec|ios_base::left and the fill character set to the space character, writes to os the textual representation of x’s current state. In the output, adjacent numbers are separated by one or more space characters. |
ostm << twister << ' ' << twister.state_size << " *** end ***\n" ;