记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:2: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
  scanf_s("%d %d %d", &x1, &x2, &x3);
  ^~~~~~~
  scanf
/in/foo.c:9:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   if (((a&b == x1) && (a | b == x2) && (a == x3)) == 1)
           ~~^~~~~
/in/foo.c:9:30: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
   if (((a&b == x1) && (a | b == x2) && (a == x3)) == 1)
                            ~~^~~~~
/in/foo.c:11:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   if (((a&b == x1) && (a | b == x3) && (a == x2)) == 1)
           ~~^~~~~
/in/foo.c:11:30: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
   if (((a&b == x1) && (a | b == x3) && (a == x2)) == 1)
                            ~~^~~~~
/in/foo.c:13:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   if (((a&b == x2) && (a | b == x1) && (a == x3)) == 1)
           ~~^~~~~
/in/foo.c:13:30: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
   if (((a&b == x2) && (a | b == x1) && (a == x3)) == 1)
                            ~~^~~~~
/in/foo.c:15:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   if (((a&b == x2) && (a | b == x3) && (a == x1)) == 1)
           ~~^~~~~
/in/foo.c:15:30: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
   if (((a&b == x2) && (a | b == x3) && (a == x1)) == 1)
                            ~~^~~~~
/in/foo.c:17:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   if (((a&b == x3) && (a | b == x2) && (a == x1)) == 1)
           ~~^~~~~
/in/foo.c:17:30: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
   if (((a&b == x3) && (a | b == x2) && (a == x1)) == 1)
                            ~~^~~~~
/in/foo.c:19:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   if (((a&b == x3) && (a | b == x1) && (a == x2)) == 1)
           ~~^~~~~
/in/foo.c:19:30: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
   if (((a&b == x3) && (a | b == x1) && (a == x2)) == 1)
                            ~~^~~~~
/in/foo.c:9:10: warning: 'a' is used uninitialized in this function [-Wuninitialized]
   if (((a&b == x1) && (a | b == x2) && (a == x3)) == 1)
        ~~^~~~~~~~~
/tmp/ccFK29Im.o: In function `main':
foo.c:(.text.startup+0x1d): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
偷拍硕哥5
比赛
小兰赛 2018/12/9
语言
C
递交时间
2018-12-09 11:44:47
评测时间
2018-12-09 11:45:04
评测机
分数
0
总耗时
53ms
峰值内存
5.668 MiB