| 12997 | 2025-01-04 16:29:50 | brownwolf | Micimackó (40 pont) | csharp | Compilation error |
namespace Micimacko
{
internal class Program
{
static void Main(string[] args)
{
int x = 0;
int y = 0;
int k=0;
int n=0;
int m = 0;
string[] be = Console.ReadLine().Split(' ');
y=int.Parse(be[0]);
x=int.Parse(be[1]);
be = Console.ReadLine().Split(' ');
k=int.Parse(be[0]);
n=int.Parse(be[1]);
if (k > y)
m = k - y;
else
m = 0;
if (m+n > x-y)
m=m+n-(x-y);
else
m=0;
Console.WriteLine(m);
}
}
}open /var/local/lib/isolate/413/box/main.exe: no such file or directory
main.cs(13,27): error CS0103: The name `Console' does not exist in the current context
main.cs(16,18): error CS0103: The name `Console' does not exist in the current context
main.cs(29,13): error CS0103: The name `Console' does not exist in the current context
Compilation failed: 3 error(s), 0 warnings