PTA 1001 A+B Format (20分)这题为什么我是编译错误

题目是:

图片说明

我的答案:

#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {
    int a,b;
    scanf("%d%d",&a,&b);
    int sum;
    sum=a+b;
    if(sum<0){
        printf("-");
        sum=-sum;
    } //解决负号问题,现在sum一定是正数

    char s[8];
    _itoa(sum,s,10);
    int w=strlen(s);
    int d=w%3;
    int i=0;
    for(i=0;i<w;i++){
        if((i-d)%3==0&&i!=0){
            printf(",");
        }
        printf("%c",s[i]);
    }
    return 0;
}

但是结果是编译错误

这啥原因呢??

_itoa(sum,s,10);
这个函数是vc++专有的,oj平台用gcc的话,这个函数不能用