Używam Microsoft Visual Studio 2017. Mimo napisania using namespace std; komplilator traktuje cout jako niezadeklarowany identyfikator
#include <iostream>
#include "stdafx.h"
using namespace std;
int main() {
int n, m;
for (n = 0; n<11; n++) {
for (m = 0; m<11; m++) {
if (n == m || m == 10 - n) {
cout << 1 << " ";
}
else{
cout << " " << " ";
}
}
cout << "\n";
for (n = n + 1; n < 11; n++) {
for (m = 4; m < 11; m++)
cout << 1 << " ";
}
}
return 0;
}