제출 #742350

#제출 시각아이디문제언어결과실행 시간메모리
742350Joibangla구슬과 끈 (APIO14_beads)C11
0 / 100
1 ms212 KiB
#include<stdio.h> int main() { int n; char ai; char bi; scanf("%d",&n); printf("%d",&n); return 0; }

컴파일 시 표준 에러 (stderr) 메시지

beads.c: In function 'main':
beads.c:8:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
    8 |   printf("%d",&n);
      |           ~^  ~~
      |            |  |
      |            |  int *
      |            int
      |           %ls
beads.c:6:8: warning: unused variable 'bi' [-Wunused-variable]
    6 |   char bi;
      |        ^~
beads.c:5:8: warning: unused variable 'ai' [-Wunused-variable]
    5 |   char ai;
      |        ^~
beads.c:7:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    7 |   scanf("%d",&n);
      |   ^~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...