Submission #742350

#TimeUsernameProblemLanguageResultExecution timeMemory
742350JoibanglaBeads and wires (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; }

Compilation message (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...