记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:10:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
   scanf("%d",a);
           ^
/in/foo.c:11:9: warning: statement with no effect [-Wunused-value]
   a>=100&&a<=200;
   ~~~~~~^~~~~~~~
/in/foo.c:13:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d",b);
          ^
/in/foo.c:17:12: warning: statement with no effect [-Wunused-value]
      b>=100&&b<=120;
      ~~~~~~^~~~~~~~
/in/foo.c:31:5: warning: statement with no effect [-Wunused-value]
     c;
     ^
/in/foo.c:13:2: warning: 'b' is used uninitialized in this function [-Wuninitialized]
  scanf("%d",b);
  ^~~~~~~~~~~~~
/in/foo.c:10:3: warning: 'a' is used uninitialized in this function [-Wuninitialized]
   scanf("%d",a);
   ^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 320.0 KiB

信息

递交者
类型
递交
题目
P1001 陶陶摘苹果
语言
C
递交时间
2024-08-29 23:16:38
评测时间
2024-08-29 23:16:38
评测机
分数
0
总耗时
1ms
峰值内存
320.0 KiB