记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:39:12: warning: passing argument 2 of 'rotate' makes integer from pointer without a cast [-Wint-conversion]
   rotate(a,b,4);
            ^
/in/foo.c:14:6: note: expected 'int' but argument is of type 'int (*)[10]'
 void rotate(int a[][N],int n)
      ^~~~~~
/in/foo.c:39:3: error: too many arguments to function 'rotate'
   rotate(a,b,4);
   ^~~~~~
/in/foo.c:14:6: note: declared here
 void rotate(int a[][N],int n)
      ^~~~~~
/in/foo.c:45:3: error: case label not within a switch statement
   case 0:puts("A!=B");break;
   ^~~~
/in/foo.c:45:23: error: break statement not within loop or switch
   case 0:puts("A!=B");break;
                       ^~~~~
/in/foo.c:46:3: error: case label not within a switch statement
   case 1:puts("A=B");break;
   ^~~~
/in/foo.c:46:22: error: break statement not within loop or switch
   case 1:puts("A=B");break;
                      ^~~~~
/in/foo.c:47:3: error: case label not within a switch statement
   case 2:puts("A rotate 90,A=B");
   ^~~~
/in/foo.c: In function 'equal':
/in/foo.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
3-1 改错题
语言
C
递交时间
2019-10-18 23:21:50
评测时间
2019-10-18 23:21:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes