Skip to content

Bug Report for string-encode-and-decode #5587

@MikeReznikov

Description

@MikeReznikov

Bug Report for https://neetcode.io/problems/string-encode-and-decode

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

using System;

public class Solution {

public string Encode(IList<string> strs) {
    return null;
}

public List<string> Decode(string s) {
    return null;

}
}

Microsoft (R) Visual C# Compiler version 4.14.0-3.26064.1 (450493a9)
Copyright (C) Microsoft Corporation. All rights reserved.

Main.cs(4,22): error CS1513: } expected
Main.cs(5,5): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations
Main.cs(19,5): error CS8803: Top-level statements must precede namespace and type declarations.
Main.cs(19,5): error CS0106: The modifier 'public' is not valid for this item
Main.cs(41,5): error CS0106: The modifier 'public' is not valid for this item
Main.cs(52,5): error CS0106: The modifier 'public' is not valid for this item
Main.cs(64,5): error CS0106: The modifier 'public' is not valid for this item
Main.cs(96,5): error CS0106: The modifier 'public' is not valid for this item
Main.cs(110,1): error CS1022: Type or namespace definition, or end-of-file expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions