#include <iostream>
using namespace std;
int main()
{
int map[8][8], nx, ny, ex, ey;
while(true)//for (int fase = 0; ; fase++)
{
for (int y = 0; y < 8; y++)
{
for (int x = 0; x < 8; x++)
{
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
}
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSAKewoJaW50IG1hcFs4XVs4XSwgbngsIG55LCBleCwgZXk7CgkKCXdoaWxlKHRydWUpLy9mb3IgKGludCBmYXNlID0gMDsgOyBmYXNlKyspCgl7CgkJZm9yIChpbnQgeSA9IDA7IHkgPCA4OyB5KyspCgkJewoJCQlmb3IgKGludCB4ID0gMDsgeCA8IDg7IHgrKykKCQkJewoJCQkJCgkJCQlpZiAoeCAtIDEgPj0gMCAmJiB5IC0gMSA+PSAwKSB7IG1hcFt5LHhdID0gZmFzZSArIDE7IH0KCQkJCWlmICh4IC0gMSA+PSAwICYmIHkgLSAxID49IDApIHsgbWFwW3kseF0gPSBmYXNlICsgMTsgfQoJCQkJaWYgKHggLSAxID49IDAgJiYgeSAtIDEgPj0gMCkgeyBtYXBbeSx4XSA9IGZhc2UgKyAxOyB9CgkJCQlpZiAoeCAtIDEgPj0gMCAmJiB5IC0gMSA+PSAwKSB7IG1hcFt5LHhdID0gZmFzZSArIDE7IH0KCQkJCQoJCQl9CgkJfQoJCQoJfQoJCgkKCXJldHVybiAwOwp9Cg==
prog.cpp: In function ‘int main()’:
prog.cpp:15:48: error: ‘fase’ was not declared in this scope
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
^~~~
prog.cpp:15:48: note: suggested alternative: ‘free’
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
^~~~
free
prog.cpp:16:48: error: ‘fase’ was not declared in this scope
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
^~~~
prog.cpp:16:48: note: suggested alternative: ‘free’
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
^~~~
free
prog.cpp:17:48: error: ‘fase’ was not declared in this scope
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
^~~~
prog.cpp:17:48: note: suggested alternative: ‘free’
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
^~~~
free
prog.cpp:18:48: error: ‘fase’ was not declared in this scope
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
^~~~
prog.cpp:18:48: note: suggested alternative: ‘free’
if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
^~~~
free