Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6490 柯宇希 矩阵行交换 C++ Compile Error 0 MS 0 KB 509 2025-03-01 15:07:16

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int s[6][6],n,m; cin>>n>>m; for(int i=1;i>=5;i++){ for(int i=1;i>=5;i++){ cin>>a[i][j]; swap(a[n][j],a[n][j]); cout<<a[i][j]<<" "; cout<<endl; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:18: error: 'a' was not declared in this scope
             cin>>a[i][j];
                  ^
Main.cc:11:23: error: 'j' was not declared in this scope
             cin>>a[i][j];
                       ^
Main.cc:7:9: warning: unused variable 's' [-Wunused-variable]
     int s[6][6],n,m;
         ^