记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:19:2: error: expected ',' or ';' before 'int'
  int b[100][100];
  ^~~
foo.cc:24:4: error: 'b' was not declared in this scope
    b[i][j]=JS(a, i,j);  // !!
    ^
foo.cc:24:21: error: too few arguments to function 'int JS(int (*)[100], int, int, int)'
    b[i][j]=JS(a, i,j);  // !!
                     ^
foo.cc:4:5: note: declared here
 int JS(int a[100][100], int n, int i,int j)
     ^~
foo.cc:28:9: error: 'b' was not declared in this scope
   cout<<b[i][j]<<" "; 
         ^
foo.cc:18:6: warning: unused variable 'rowsum' [-Wunused-variable]
  int rowsum[100]={0}, colsum[100]={0}
      ^~~~~~
foo.cc:18:23: warning: unused variable 'colsum' [-Wunused-variable]
  int rowsum[100]={0}, colsum[100]={0}
                       ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1277 矩阵变换
语言
C++
递交时间
2021-07-19 09:54:48
评测时间
2021-07-19 09:54:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes