Task: | Sulut |
Sender: | 4321Boom4321 |
Submission time: | 2024-01-20 16:41:28 +0200 |
Language: | C++ (C++11) |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp:1:1: error: unterminated comment 1 | /* #include <bits/stdc++.h> | ^
Code
/* #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int k; cin >> k; std::string answer; std::string answer2; if (k % 2 == 0 && n % 2 == 0) { for (int i = 0; i < n; i++) { answer += "()"; i++; } answer2 = answer; if (0 < k < n) { //answer2[1] forward k; } else if (k == n){ //answer2[1] push_back && answer2[3] forward 2, does not account for if k == 2 and n == 2 impossible } } else { cout << "IMPOSSIBLE"; } cout << answer << endl; cout << answer2 << endl; }