| Problem | knockingdominoes_ex |
|---|---|
| User | LordOfTheCookies |
| Submission Time | 2026-06-25 11:21:30 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knockingdominoes_ex.cpp: In function ‘int main()’:
knockingdominoes_ex.cpp:18:27: error: expected ‘;’ before ‘i’
18 | for (int i = 1; i <= n i++) {
| ^~
| ;
knockingdominoes_ex.cpp:28:38: error: ‘n’ cannot be used as a function
28 | if (i > n (doominos.size() -1) / 2 ) {
| ^
knockingdominoes_ex.cpp:29:30: error: ‘doomnios’ was not declared in this scope; did you mean ‘doominos’?
29 | for (int i2 = i; doomnios.size() - 1; i2++) {
| ^~~~~~~~
| doominos
knockingdominoes_ex.cpp:34:34: error: no matching function for call to ‘std::vector<long long int>::erase(long long int&)’
34 | doominos.erase(i2);
| ^
In file included from /usr/include/c++/9/vector:67,