0
已解决
胡钰妍
资深光能
资深光能
- #include<iostream>
- #include<cstdio>
- int a[1001][1001];
- using namespace std;
- int main()
- {
- int m,n,i,j;
- scanf("%d%d",&n,&m);
- for (i=1;i<=n;++i)
- for (j=1;j<=m;++j)
- scanf("%d",&a[i][j]);
- for (i=1;i<=m;++i)
- {
- for (j=1;j<=n;++j)
- printf("%d ",a[j][i]);
- printf("\n");
- }
- return 0;
- }
- 哪错了?还能救吗?