Defining Classes - Problem 9. Google - Judge gives (Compile time error)

Defining Classes - Problem 9. Google - Judge gives (Compile time error)

sevdalin avatar sevdalin 37 Точки

Defining Classes - Problem 9. Google - Judge gives (Compile time error)

Здравейте колеги,

реших си задачата, и като я тествам с нулевите тестове си работи коректно. Но когато кача "solution"-на в Judge ми дава Compile Time Error със следният код:

Compiled file is missing. Compiler output: Car.cs(14,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Car.cs(14,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Car.cs(16,6): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Car.cs(20,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Car.cs(20,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Car.cs(23,2): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Children.cs(16,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Children.cs(16,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Children.cs(18,6): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Children.cs(22,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Children.cs(22,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Children.cs(25,2): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(23,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(23,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(25,6): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(29,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(29,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(31,6): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(35,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(35,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(37,6): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(41,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(41,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(43,6): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(47,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(47,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(49,6): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(53,13): error CS1043: { or ; expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(53,13): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]
Person.cs(56,2): error CS1513: } expected [C:\Users\Administrator\AppData\Local\Temp\2uirxwxm.b5t\09. Google.csproj]

Пробвах да изтрия целият Project и после го добавих отново и Copy-Paste-нах целият код. Пробвах да сложа целият Код направо в Judge без да качвам Solution, но нищо от това не проработи.

Не разбирам какво се случва, къде е проблема и какво трябва да направя. Това не е първият Solution който качвам в Judge и не мога да разбера къде е проблема.

Ето това ми е програмата: изтегли

Надявам се някой да може да удари едно рамо!

Благодаря.

Тагове:
0
C# OOP Basics
RoYaL avatar RoYaL SoftUni Team Trainer 6789 Точки
Best Answer

Property expression body-то е от C# версия 7, която още не се поддържа в Judge системата. Предвидили сме в най-скоро време да поддържаме C# 7.

0