Intel C++ Challenge
question for ptsEssay
You can unlock a hint for this question. Please note that if you provide the correct answer, will be deducted from your total score as the cost for using the hint.
Approximate time:
code task for pts
You can unlock the task hint. The number of points you get for this task will be reduced by .
Approximate time:
Expand Collapse
Visible tests (not scored)
Close$ bash --version GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)
Unit test library: shUnit 2.1.9pre
$ gcc -Q -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.10' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)
Unit test library: GTest 1.8.0-10.1
# gcc --version g++ (GCC) 11.2.1 20220114
# gcc -Q -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-linux-gnu/11.2.1/lto-wrapper Target: x86_64-linux-gnu Configured with: ../configure --enable-languages=c,c++,fortran --disable-multilib --disable-bootstrap --build=x86_64-linux-gnu Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.2.1 20220114 (GCC)
Unit test library: GTest 1.10.0
$ mcs --version Mono C# compiler version 6.12.0.122
$ mono --version Mono JIT compiler version 6.12.0.122 (tarball Mon Feb 22 17:42:49 UTC 2021) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug Interpreter: yes LLVM: yes(600) Suspend: hybrid GC: sgen (concurrent by default)
Unit test library: NUnit 3.13.2
$ dotnet --info .NET SDK (reflecting any global.json): Version: 6.0.101 Commit: ef49f6213a Host (useful for support): Version: 6.0.1 Commit: 3a25a7f1cc .NET SDKs installed: 6.0.101 [/usr/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Unit test library: NUnit 3.13.2
$ lein --version Leiningen 2.8.1 on Java 1.8.0_181 OpenJDK 64-Bit Server VM
$ dmd --version
DMD64 D Compiler v2.080.0
$ flutter --version Flutter 2.10.1 Framework • revision db747aa133 • 2022-02-09 13:57:35 -0600 Engine • revision ab46186b24 Tools • Dart 2.16.1 • DevTools 2.9.2
$ go version go version go1.19.2 linux/amd64
$ groovy --version Groovy Version: 4.0.3 JVM: 18.0.1 Vendor: Eclipse Adoptium OS: Linux
$ java -version openjdk 11.0.13 2021-10-19 OpenJDK Runtime Environment 18.9 (build 11.0.13+8) OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8, mixed mode, sharing)
Unit test library: JUnit 4.13.1
$ java -version openjdk 20 2023-03-21 OpenJDK Runtime Environment (build 20+36-2344) OpenJDK 64-Bit Server VM (build 20+36-2344, mixed mode, sharing)
Unit test library: JUnit 5.3.2
$ node --version v17.5.0
Unit test library: Mocha 9.2.0 Chai 4.3.6 Supertest 6.2.2
$ kotlinc -version info: kotlinc-jvm 1.3.20 (JRE 1.8.0_202-b08)
Unit test library: Kotlin.test 1.3.21
$ perl --version This is perl 5, version 28, subversion 0 (v5.28.0) built for x86_64-linux-gnu
$ php --version PHP 7.3.20 (cli) (built: Jul 22 2020 09:57:21) ( NTS )
Unit test library: PHPUnit 7.5.20
$ python2 --version Python 2.7.18
Unit test library: Built-in PyUnit 2.7.18
$ python3 --version Python 3.10.2
Unit test library: Built-in PyUnit 3.10.2
$ ruby --version ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
Unit test library: Built-in standard library Test::Unit 2.5.3p105
Unit testing environment: Node 17.5.0 React 17.0.2 Babel-jest 27.5.1 testing-library/dom 8.11.3 testing-library/react 12.1.3
Unit testing environment: TS-Node 10.7.0 React 18.0.0 Node 17.7.2 Jest 27.5.1
$ rustc --version rustc 1.58.1 (db9d1b20b 2022-01-20) $ cargo --version cargo 1.58.0 (f01b232bc 2022-01-19) [dependencies] sqlite = "0.26.0"
$ swift --version Swift version 5.6.1 (swift-5.6.1-RELEASE) Target: x86_64-unknown-linux-gnu
Unit test library: XCTest
$ scalac -version Scala compiler version 2.11.6 -- Copyright 2002-2013, LAMP/EPFL
$ scala -version Scala code runner version 2.11.6 -- Copyright 2002-2013, LAMP/EPFL
TypeScript 4.8.4 Node.JS 18.10.0 TS-Node 10.9.1 NestJS 9.1.2
Unit test library: Jasmine 4.4.0
$ vbnc --version
Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.7 - tarball)
$ mono --version Mono JIT compiler version 5.16.0.179 (tarball Thu Oct 4 10:29:21 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug Interpreter: yes LLVM: yes(3.6.0svn-mono-/) GC: sgen (concurrent by default)