记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d%d",x,y);
          ^
/in/foo.c:6:12: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d%d",x,y);
            ^
/in/foo.c:9:10: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   printf('1');
          ^~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.c:13:10: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   printf('2');
          ^~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.c:17:10: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   printf('3');
          ^~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.c:21:10: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   printf('4');
          ^~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.c:25:10: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   printf('5');
          ^~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.c:6:2: warning: 'x' is used uninitialized in this function [-Wuninitialized]
  scanf("%d%d",x,y);
  ^~~~~~~~~~~~~~~~~
/in/foo.c:6:2: warning: 'y' is used uninitialized in this function [-Wuninitialized]
# 状态 耗时 内存占用
#1 Runtime Error 1ms 316.0 KiB

信息

递交者
类型
递交
题目
P1003 平面坐标系
语言
C
递交时间
2024-08-01 09:46:59
评测时间
2024-08-01 09:46:59
评测机
分数
0
总耗时
1ms
峰值内存
316.0 KiB