0_0_36067647_25774.cpp: In function 'int main()': 0_0_36067647_25774.cpp:26:82: error: 'random' was not declared in this scope for(int i = 1; i <= n; ++i) for(int j = 1; j <= n; ++j) a[i][j] = random() % 3 + 1,cin >> a[i][j]; ^