I'm getting a compilation error as my verdict on when submitting this code, but it runs fine on my computer. Any ideas?
№ | Пользователь | Рейтинг |
---|---|---|
1 | ecnerwala | 3649 |
2 | Benq | 3581 |
3 | orzdevinwang | 3570 |
4 | Geothermal | 3569 |
4 | cnnfls_csy | 3569 |
6 | tourist | 3565 |
7 | maroonrk | 3531 |
8 | Radewoosh | 3521 |
9 | Um_nik | 3482 |
10 | jiangly | 3468 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 162 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 151 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
I'm getting a compilation error as my verdict on when submitting this code, but it runs fine on my computer. Any ideas?
Название |
---|
You are using the to_string method to convert an integer to a string. This function only exists in C++11 and doesn't exist in previous versions. However, you are submitting in GNU C++, not C++ 11. A solution is to change the programming language you are submitting into GNU C++0x.
In Codeforces, you can submit your code in Custom Invocation to view the error information outputted by compiler when you got "strange" Compilation Error.
Or, easier
Check your header file sometimes our computer compiler run our code without including the header file(like we can use string related function without using string.h header file) but an online judge can't run a code properly without including the header file. So, check the header file :-).
thanks for replying after 6 years :)
Am still looking at comments though after 6 years haha