View Code of Problem 3926

#include<bits/stdc++.h>
using namespace std;
int mp[15][15];
int main() {
	int n, m, a, b;
	cin >> n >> m >> a >> b;
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < m; j++)
			scanf_s("%1d", &mp[i][j]);
	}

	for (int i = 0; i < n; i++) {
		for (int k = 0; k < a; k++) {
			for (int j = 0; j < m; j++) {
				for (int t = 0; t < b; t++)
					cout << mp[i][j];
			}
			cout << endl;
		}
	}

	return 0;
}
/*
Main.cc: In function 'int main()':
Main.cc:9:4: error: 'scanf_s' was not declared in this scope
    scanf_s("%1d", &mp[i][j]);
    ^~~~~~~
Main.cc:9:4: note: suggested alternative: 'scanf'
    scanf_s("%1d", &mp[i][j]);
    ^~~~~~~
    scanf
*/

Double click to view unformatted code.


Back to problem 3926