# Codechef compiler update to C++ 17/20

**URL:** <https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164>\
**Category:** feedback\
**Tags:** c-plus-plus\
**Created:** [February 13, 2022, 4:56am UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164 "2022-02-13T04:56:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dull\_jester](https://discuss.codechef.com/user_avatar/discuss.codechef.com/dull_jester/32/24644_2.png) [@dull\_jester](https://discuss.codechef.com/u/dull_jester)\
**Post date:** [February 13, 2022, 4:56am UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/1 "2022-02-13T04:56:53Z")

</div>

Right now, the available languages dropdown menu features C++14 only. I wonder when C++1z or even C++20 will become available on CodeChef. What the admins say, are there any plans and what is preventing us from having these languages?

---

<div class="post-metadata">

**Author:** ![ssvb](https://discuss.codechef.com/user_avatar/discuss.codechef.com/ssvb/32/216702_2.png) [@ssvb](https://discuss.codechef.com/u/ssvb)\
**Post date:** [July 16, 2022, 7:47am UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/2 "2022-07-16T07:47:30Z")

</div>

Maybe @hrishik85 knows something? At least [Rust compiler is going to get an update soon(ish?)](https://discuss.codechef.com/t/please-update-rust-version/97633/20). So it’s possible that the other compilers will be updated too. If people are interested in modern C++, then they shouldn’t be silent.

---

<div class="post-metadata">

**Author:** ![admin](https://discuss.codechef.com/user_avatar/discuss.codechef.com/admin/32/212587_2.png) [@admin](https://discuss.codechef.com/u/admin)\
**Post date:** [July 16, 2022, 10:42am UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/3 "2022-07-16T10:42:05Z")

</div>

> [@ssvb](#):
>
> it’s possible that the other compilers will be updated too.

Yes.  
Btw, C++17 has already been live for a while.

---

<div class="post-metadata">

**Author:** ![dull\_jester](https://discuss.codechef.com/user_avatar/discuss.codechef.com/dull_jester/32/24644_2.png) [@dull\_jester](https://discuss.codechef.com/u/dull_jester)\
**Post date:** [August 20, 2022, 11:30am UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/4 "2022-08-20T11:30:26Z")

</div>

Looks like not all of them have been updated. For example, if you look at [CodeChef: Practical coding for everyone](https://www.codechef.com/submit/TRDST?tab=statement),  
still the old C++14 shows up, not the C++17.

---

<div class="post-metadata">

**Author:** ![suman\_18733097](https://discuss.codechef.com/user_avatar/discuss.codechef.com/suman_18733097/32/218666_2.png) [@suman\_18733097](https://discuss.codechef.com/u/suman_18733097)\
**Post date:** [August 20, 2022, 1:11pm UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/5 "2022-08-20T13:11:31Z")

</div>

I guess the new versions of languages will only be shown for problems created after the environment update.

---

<div class="post-metadata">

**Author:** ![dull\_jester](https://discuss.codechef.com/user_avatar/discuss.codechef.com/dull_jester/32/24644_2.png) [@dull\_jester](https://discuss.codechef.com/u/dull_jester)\
**Post date:** [August 20, 2022, 2:28pm UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/6 "2022-08-20T14:28:06Z")

</div>

That is what I figured.  
How hard it is to add C++17 support for practice mode problems, then?

I would really like to spend more time on CF, but sometimes missing features such as std::optional etc leave me not writing a good design.

---

<div class="post-metadata">

**Author:** ![hrishik85](https://discuss.codechef.com/user_avatar/discuss.codechef.com/hrishik85/32/24644_2.png) [@hrishik85](https://discuss.codechef.com/u/hrishik85)\
**Post date:** [August 22, 2022, 5:07am UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/7 "2022-08-22T05:07:42Z")

</div>

@dull_jester - thanks for reporting this. Will come back to you once this is fixed for all problems in practice.

---

<div class="post-metadata">

**Author:** ![dull\_jester](https://discuss.codechef.com/user_avatar/discuss.codechef.com/dull_jester/32/24644_2.png) [@dull\_jester](https://discuss.codechef.com/u/dull_jester)\
**Post date:** [September 20, 2022, 6:04am UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/8 "2022-09-20T06:04:36Z")

</div>

@hrishik85 Thank you, looking forward to hearing from you in this regard.

---

<div class="post-metadata">

**Author:** ![dull\_jester](https://discuss.codechef.com/user_avatar/discuss.codechef.com/dull_jester/32/24644_2.png) [@dull\_jester](https://discuss.codechef.com/u/dull_jester)\
**Post date:** [September 29, 2022, 7:09am UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/9 "2022-09-29T07:09:30Z")

</div>

@hrishik85 Any updates on this? Another question, where are the editorials now? I see the new interface features “Solution” tab, which is empty, and the old “Editorial” is not easily found.

---

<div class="post-metadata">

**Author:** ![hrishik85](https://discuss.codechef.com/user_avatar/discuss.codechef.com/hrishik85/32/24644_2.png) [@hrishik85](https://discuss.codechef.com/u/hrishik85)\
**Post date:** [September 29, 2022, 9:48am UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/10 "2022-09-29T09:48:52Z")

</div>

@dull_jester - For the older problems - while you see it in the frontend as c++14 - at the backend, they have been updated to gcc 11 i.e. C++17. So you should be able to use all functionalities.

That said - we will get C++17 added by next week. Sorry about the delay.

---

<div class="post-metadata">

**Author:** ![dull\_jester](https://discuss.codechef.com/user_avatar/discuss.codechef.com/dull_jester/32/24644_2.png) [@dull\_jester](https://discuss.codechef.com/u/dull_jester)\
**Post date:** [October 6, 2022, 6:59pm UTC](https://discuss.codechef.com/t/codechef-compiler-update-to-c-17-20/99164/11 "2022-10-06T18:59:19Z")

</div>

I confirm this is indeed the case. I code in C++17 and submit using C++14, and it compiles fine. Thanks for adding this!
