Submission #122795


Source Code Expand

Copy
#include<stdio.h>

int main(void){
    int task;
    int i;
    int check;
    int income=0;
    printf("input N\n");
    check = scanf_s("%d", &task);
    for(i=0;i<task;i++){
        income += (i+1)*10000;
        //printf("%d:%d\n", i, income);
    }
    printf("%d\n",income/task);
}

Submission Info

Submission Time
Task A - AtCoder社の給料
User helro
Language C (GCC 4.6.4)
Score 0
Code Size 303 Byte
Status CE

Compile Error

/tmp/cc9NXYr5.o: In function `main':
Main.c:(.text.startup+0x1b): undefined reference to `scanf_s'
collect2: ld returned 1 exit status