| 14308 | 2025-01-10 13:22:56 | MagyarKendeSZLG | Bimmbamm (30) | csharp | Forditási hiba |
int n = int.Parse(Console.ReadLine());
for (int i = 1; i <= n; i++)
{
string szo = Console.ReadLine();
string helyes = "";
if (i % 3 != 0 && i % 5 != 0)
{
helyes = "SZAM";
}
else if (i % 3 == 0 && i % 5 == 0)
{
helyes = "BUMM";
}
else if (i % 3 == 0)
{
helyes = "BIMM";
}
else
{
helyes = "BAMM";
}
if (szo != helyes)
{
Console.WriteLine(i);
Environment.Exit(0);
}
}
Console.WriteLine(0);open /var/local/lib/isolate/407/box/main.exe: no such file or directory
main.cs(1,0): error CS1525: Unexpected symbol `int'
Compilation failed: 1 error(s), 0 warnings