# A bug in Ingredient Identification for C++

**URL:** <https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076>\
**Category:** Bugs\
**Created:** [September 13, 2020, 2:41am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076 "2020-09-13T02:41:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheOrbitals](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/theorbitals/32/28144_2.png) [@TheOrbitals](https://discourse.codecombat.com/u/TheOrbitals)\
**Post date:** [September 13, 2020, 2:41am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/1 "2020-09-13T02:41:42Z")

</div>

Basically it doesn’t work  
My code:

```python
// A variable is a container with a label that holds data.
void main() {
    // This variable is named `someVariableName`
    // It contains the value `"a string"`
    auto someVariableName = "a string";
    // This variable is named `lolol`
    // It contains the number `42`
    auto lolol = 42;
    // Create 2 more variables and assign values to them:
    // You can name them whatever you want, and hold any value in them!
    // Use `=` to assign a value to a variable.
    auto callTheAmbulance = "but not for me";
    auto pressF = "for respect";
}

```

~ Orb

---

<div class="post-metadata">

**Author:** ![Mumbo\_6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/mumbo_6/32/14166_2.png) [@Mumbo\_6](https://discourse.codecombat.com/u/Mumbo_6)\
**Post date:** [September 13, 2020, 4:55am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/2 "2020-09-13T04:55:44Z")

</div>

I don’t do C++ that much, but maybe you should remove the „auto callTheAmbulance“ and the other auto. In python you would just do:

```python
Whatever you want to call it = 200 or any number

```

Mumbo\_6

---

<div class="post-metadata">

**Author:** ![weary](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/weary/32/15122_2.png) [@weary](https://discourse.codecombat.com/u/weary)\
**Post date:** [September 13, 2020, 4:55am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/3 "2020-09-13T04:55:47Z")

</div>

I think it is a bug because I tried the level with the code it didn’t work, but when I changed the language to Python and tweaked the code a bit, it worked.

---

<div class="post-metadata">

**Author:** ![weary](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/weary/32/15122_2.png) [@weary](https://discourse.codecombat.com/u/weary)\
**Post date:** [September 13, 2020, 4:56am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/4 "2020-09-13T04:56:08Z")

</div>

It’s not JavaScript it’s C++

---

<div class="post-metadata">

**Author:** ![Mumbo\_6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/mumbo_6/32/14166_2.png) [@Mumbo\_6](https://discourse.codecombat.com/u/Mumbo_6)\
**Post date:** [September 13, 2020, 4:56am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/5 "2020-09-13T04:56:33Z")

</div>

Woopsies sorry… 20 chars

---

<div class="post-metadata">

**Author:** ![weary](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/weary/32/15122_2.png) [@weary](https://discourse.codecombat.com/u/weary)\
**Post date:** [September 13, 2020, 4:56am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/6 "2020-09-13T04:56:56Z")

</div>

Try asking @Chaboi_3000 or @Deadpool198.

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [September 13, 2020, 4:58am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/7 "2020-09-13T04:58:06Z")

</div>

C++ is still experimental, so there are some little bugs with this language in some levels.

Andrei

---

<div class="post-metadata">

**Author:** ![crafter](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/crafter/32/13452_2.png) [@crafter](https://discourse.codecombat.com/u/crafter)\
**Post date:** [September 13, 2020, 4:59am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/8 "2020-09-13T04:59:09Z")

</div>

SO you mean that it was not fully added in?

---

<div class="post-metadata">

**Author:** ![weary](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/weary/32/15122_2.png) [@weary](https://discourse.codecombat.com/u/weary)\
**Post date:** [September 13, 2020, 5:00am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/9 "2020-09-13T05:00:41Z")

</div>

It was recently added, and it’s for Subscribers only.

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [September 13, 2020, 5:00am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/10 "2020-09-13T05:00:49Z")

</div>

I mean that it is not like Phyton or Java Script, it is still new and there are still some bugs out there that will be fixed by the staff when they discover them.

Andrei

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [September 14, 2020, 9:47am UTC](https://discourse.codecombat.com/t/a-bug-in-ingredient-identification-for-c/24076/11 "2020-09-14T09:47:34Z")

</div>

It’s experimental, meaning that some features may still be incomplete. Since CPP was tested last year with a few people(Me and a CoCo team member) it’s likely that some areas may have been missed. Feel free to reach out to me with any bugs you find, and I’d love to forward it to the team.
