Submission #1341432

#TimeUsernameProblemLanguageResultExecution timeMemory
1341432zowiCombo (IOI18_combo)C++20
Compilation error
0 ms0 KiB
if(press("AB"))
	{
		if(press("AB"))
		{
			p = "A";
			tab.erase('A');
		}
		else
		{
			p = "B";
			tab.erase('B');
		}
	}
	else
	{
		if(press("X"))
		{
			p = "X";
			tab.erase('X');
		}
		else
		{
			p = "Y";
			tab.erase('Y');
		}
	}

Compilation message (stderr)

combo.cpp:1:1: error: expected unqualified-id before 'if'
    1 | if(press("AB"))
      | ^~
combo.cpp:14:9: error: expected unqualified-id before 'else'
   14 |         else
      |         ^~~~