Author
anonymous
over 5 years ago
Language
C++
Compiler
clang 8.0.0
Options
Warnings
Boost 1.71.0
C++17
no pedantic
Author
anonymous
over 5 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-8.0.0/include -std=c++17
prog.cc:1:11: error: use of undeclared identifier 'std'
void read(std::uint64_t) {
^
prog.cc:5:16: error: use of undeclared identifier 'std'
void benchmark(std::uint64_t numThreads, std::uint64_t iterations) {
^
prog.cc:5:42: error: use of undeclared identifier 'std'
void benchmark(std::uint64_t numThreads, std::uint64_t iterations) {
^
prog.cc:6:18: error: use of undeclared identifier 'std'
auto threads = std::vector<std::thread>{};
^
prog.cc:6:30: error: use of undeclared identifier 'std'
auto threads = std::vector<std::thread>{};
^
prog.cc:6:41: error: initializer list cannot be used on the right hand side of operator '>'
auto threads = std::vector<std::thread>{};
^~~
prog.cc:7:17: error: use of undeclared identifier 'std'
auto atomic = std::atomic<std::uint64_t>{0};
^
prog.cc:7:29: error: use of undeclared identifier 'std'
auto atomic = std::atomic<std::uint64_t>{0};
^
prog.cc:7:42: error: initializer list cannot be used on the right hand side of operator '>'
auto atomic = std::atomic<std::uint64_t>{0};
^~~~
prog.cc:9:8: error: unknown type name 'size_t'
for (size_t t = 0; t < numThreads; ++t) {
^
prog.cc:13:21: error: use of undeclared identifier 'std'
for (auto i = std::uint64_t{0}; i < iterations; ++i) {
^
prog.cc:16:14: error: use of undeclared identifier 'sum'
read(sum);
^
12 errors generated.
Exit Code:
1