Task: | Ruudukko |
Sender: | Anniiiz |
Submission time: | 2023-01-21 14:12:54 +0200 |
Language: | C++ (C++17) |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:11:7: error: 'n' was not declared in this scope; did you mean 'yn'? 11 | if (n == 1) { | ^ | yn input/code.cpp:12:9: error: 'm' was not declared in this scope; did you mean 'tm'? 12 | if (m == 1) { | ^ | tm input/code.cpp:15:9: error: 'm' was not declared in this scope; did you mean 'tm'? 15 | if (m == 2) { | ^ | tm input/code.cpp:18:9: error: 'm' was not declared in this scope; did you mean 'tm'? 18 | if (m == 3) { | ^ | tm input/code.cpp:21:9: error: 'm' was not declared in this scope; did you mean 'tm'? 21 | if (m == 4) { | ^ | tm input/code.cpp:25:7: error: 'n' was not declared in this scope; did you mean 'yn'? 25 | if (n == 2) { | ^ | yn input/code.cpp:26:9: error: 'm' was not declared in this scope; did you mean 'tm'? 26 |...
Code
#include <iostream> #include <map> #include <vector> #include <cmath> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(0); cin.tie(0); if (n == 1) { if (m == 1) { cout << '.' << endl; } if (m == 2) { cout << ".." << endl; } if (m == 3) { cout << "..." << endl; } if (m == 4) { cout << "...." << endl; } } if (n == 2) { if (m == 1) { cout << "." << endl; cout << "." << endl; } if (m == 2) { cout << ".." << endl; cout << "#." << endl; } if (m == 3) { cout << ".#." << endl; cout << "..." << endl; } if (m == 4) { cout << "...#" << endl; cout << ".#.." << endl; } } if (n == 3) { if (m == 1) { cout << "." << endl; cout << "." << endl; cout << "." << endl; } if (m == 2) { cout << ".." << endl; cout << "#." << endl; cout << ".." << endl; } if (m == 3) { cout << ".#." << endl; cout << "..." << endl; cout << ".#." << endl; } if (m == 4) { cout << "...#" << endl; cout << ".#.." << endl; cout << "..#." << endl; } } if (n == 4) { if (m == 1) { cout << "." << endl; cout << "." << endl; cout << "." << endl; cout << "." << endl; } if (m == 2) { cout << ".." << endl; cout << "#." << endl; cout << ".." << endl; cout << "#." << endl; } if (m == 3) { cout << ".#." << endl; cout << "..." << endl; cout << ".#." << endl; cout << "..#" << endl; } if (m == 4) { cout << "...#" << endl; cout << ".#.." << endl; cout << "..#." << endl; cout << ".#.." << endl; } } }