记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:4:17: error: expected ';', ',' or ')' before '&' token
 void my_swap(int&x,int&y);
                 ^
/in/foo.c:7:1: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
 scanf_s("%d,%d,%d",%n1,&n2,&n3);
 ^~~~~~~
/in/foo.c:7:20: error: expected expression before '%' token
 scanf_s("%d,%d,%d",%n1,&n2,&n3);
                    ^
/in/foo.c:10:2: warning: implicit declaration of function 'my_swap' [-Wimplicit-function-declaration]
  my_swap(n1,n2);
  ^~~~~~~
/in/foo.c:16:7: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 if (n2,n3)
       ^
/in/foo.c: At top level:
/in/foo.c:24:18: error: expected ';', ',' or ')' before '&' token
 void my_swap(int &x,int %y)
                  ^

信息

递交者
类型
递交
题目
结构化的程序格式,是编程世界的基石。
语言
C
递交时间
2018-12-19 21:43:10
评测时间
2018-12-19 21:43:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes