Submission #14958982


Source Code Expand

#include<stdio.h>

int main () {
  int a;
  scanf("%d", &a);
  printf("%d\n", a+a*a+a*a*a);
  return 0;
}

Submission Info

Submission Time
Task A - Calc
User nophey
Language C (GCC 9.2.1)
Score 100
Code Size 114 Byte
Status AC
Exec Time 5 ms
Memory 1700 KiB

Compile Error

./Main.c: In function ‘main’:
./Main.c:5:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    5 |   scanf("%d", &a);
      |   ^~~~~~~~~~~~~~~

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample a01.txt, a02.txt
All a01.txt, a02.txt, b03.txt, b04.txt, b05.txt, b06.txt, b07.txt, b08.txt, b09.txt, b10.txt
Case Name Status Exec Time Memory
a01.txt AC 5 ms 1608 KiB
a02.txt AC 2 ms 1652 KiB
b03.txt AC 1 ms 1652 KiB
b04.txt AC 1 ms 1652 KiB
b05.txt AC 1 ms 1616 KiB
b06.txt AC 1 ms 1660 KiB
b07.txt AC 2 ms 1700 KiB
b08.txt AC 2 ms 1616 KiB
b09.txt AC 2 ms 1604 KiB
b10.txt AC 2 ms 1676 KiB