We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I am trying this challenge in C#. When I try to run my code via the website I am getting an error,
"solution.cs(38,7): error CS1525: Unexpected symbol void', expectingclass', delegate',enum', interface',partial', or `struct'
Compilation failed: 1 error(s), 0 warnings",
However, when I copy my code into Visual Studios and run it, everything works fine. I can't find any obvious errors in the code, I am thinking it's a problem in the problem itself. Has anyone else had success submitting C# code for this problem
Edit: I ended up copying each method in individually, and it seems to work now.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Class vs. Instance
You are viewing a single comment's thread. Return to all comments →
I am trying this challenge in C#. When I try to run my code via the website I am getting an error,
"solution.cs(38,7): error CS1525: Unexpected symbol
void', expecting
class',delegate',
enum',interface',
partial', or `struct' Compilation failed: 1 error(s), 0 warnings",However, when I copy my code into Visual Studios and run it, everything works fine. I can't find any obvious errors in the code, I am thinking it's a problem in the problem itself. Has anyone else had success submitting C# code for this problem
Edit: I ended up copying each method in individually, and it seems to work now.