clang
is a C compiler, use clang++
for C++. -std=c++11
should've helped, if it didn't it means you're not actually using tasks.json
(perhaps you use the "code runner" extension that doesn't use this config).
clang
is a C compiler, use clang++
for C++. -std=c++11
should've helped, if it didn't it means you're not actually using tasks.json
(perhaps you use the "code runner" extension that doesn't use this config).