Skip to content
← Back to Community
C++ version / libraries available
Profile icon
ClaireZhang2

Hi, I have a general question about repl.it's compiler, and the libraries it supports. I want to use std: stoi, which was introduced in C++ 11. However, it is not recognized. I've heard that Clang 3.3 is C++ 11 feature complete, so why doesn't repl.it use this version? (Please let me know if I misunderstood anything.) Thanks!

Voters
Profile icon
faizanthemaster
Profile icon
ClaireZhang2
Comments
hotnewtop
Profile icon
theangryepicbanana

The function should exist even if the autocomplete says otherwise because repl.it uses Clang 7 (which is way higher than Clang 3.3)

Profile icon
ClaireZhang2

@theangryepicbanana Thanks, that makes since. The code does indeed run.

Profile icon
MiguelEmiliano1

How u make it work??
@ClaireZhang2