Submission #2547672
Source Code Expand
#include<stdio.h> int main(){ int a,b; scanf("%d %d,&a,&b); printf("%d %d\n",b,a); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - スワップ |
User | invisible |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 106 Byte |
Status | CE |
Compile Error
./Main.c: In function ‘main’: ./Main.c:4:8: warning: missing terminating " character scanf("%d %d,&a,&b); ^ ./Main.c:4:2: error: missing terminating " character scanf("%d %d,&a,&b); ^ ./Main.c:5:23: error: expected ‘)’ before ‘;’ token printf("%d %d\n",b,a); ^ ./Main.c:5:2: warning: passing argument 1 of ‘scanf’ makes pointer from integer without a cast [-Wint-conversion] printf("%d %d\n",b,a); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdio.h:27, from ./Main.c:1: /usr/include/stdio.h:446:12: note: expected ‘const char * restrict’ but argument is of type ‘int’ extern int __REDIRECT (scanf, (const char *__restrict __format, ...), ^ ./Main.c:7:1: warning: format not a string literal and no format arguments [-Wformat-security] } ^ ./Main.c:7:1: error: expected ‘;’ before ‘}’ token ./Main.c:4:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunus...