记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
  scanf("%d %d\n",&a,&b);
          ^
/in/foo.c:6:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
  scanf("%d %d\n",&a,&b);
             ^
/in/foo.c:7:10: warning: comparison of constant '10' with boolean expression is always true [-Wbool-compare]
  if(-10<a<10)
          ^
/in/foo.c:7:8: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if(-10<a<10)
     ~~~^~
/in/foo.c:11:10: warning: comparison of constant '10' with boolean expression is always true [-Wbool-compare]
  if(-10<b<10)
          ^
/in/foo.c:11:8: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if(-10<b<10)
     ~~~^~
/in/foo.c:15:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d",a+b);
           ^
# 状态 耗时 内存占用
#1 Accepted 0ms 200.0 KiB
#2 Accepted 0ms 208.0 KiB
#3 Accepted 0ms 204.0 KiB
#4 Accepted 0ms 200.0 KiB
#5 Accepted 0ms 208.0 KiB
#6 Accepted 0ms 204.0 KiB
#7 Accepted 0ms 204.0 KiB
#8 Accepted 0ms 200.0 KiB
#9 Accepted 0ms 204.0 KiB
#10 Accepted 0ms 208.0 KiB

信息

递交者
类型
递交
题目
欢迎来到南师大计算机学院OnlineJudge!
比赛
程序设计基础2019-10-2
语言
C
递交时间
2019-10-02 08:24:17
评测时间
2019-10-02 08:24:17
评测机
分数
100
总耗时
7ms
峰值内存
208.0 KiB