洛谷的编译器是不支持stdlib.h吗?

P1467 [USACO2.2] 循环数 Runaround Numbers

@[CaptainSlow](/space/show?uid=28022) $\texttt{itoa}$ 不是标准函数,请手写或使用 $\texttt{std::to\_string()}$ 。
by Anguei @ 2018-02-27 16:35:46


@[CaptainSlow](/space/show?uid=28022) atoi 是可以用的
by Anguei @ 2018-02-27 16:36:17


itoa能否使用取决于编译器的心情
by iotang @ 2018-02-27 16:37:03


```cpp snprintf(s,sizeof(s),"%d",i); ```
by iotang @ 2018-02-27 16:38:40


@[yyfcpp](/space/show?uid=53062) 这样啊,那也就是说跟头文件没有关系对吗?
by CaptainSlow @ 2018-02-27 16:45:46


@[IsaacOriTang](/space/show?uid=44176) 这么醉心。。。
by CaptainSlow @ 2018-02-27 16:46:03


@[IsaacOriTang](/space/show?uid=44176) 我最后是用sprintf()过了。
by CaptainSlow @ 2018-02-27 16:46:37


@[CaptainSlow](/space/show?uid=28022) 没关系。补充一下,`sprintf` 和 `std::stringstream` 可以完成任意类型的转换。
by Anguei @ 2018-02-27 16:52:33


@[IsaacOriTang](/space/show?uid=44176) 哦,我忘了 `sprintf` 了
by Anguei @ 2018-02-27 16:53:21


@[yyfcpp](/space/show?uid=53062) 啊那谢谢您啦。
by CaptainSlow @ 2018-02-27 18:20:54


| 下一页