میشه از دستور const استفاده کنی.یا بنویسی
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int k;
cin>>k;
const int n=k;
int i,j,x[n][n]...