C#C
C#3y ago
Isaaaak

Code works in VS but not in Codewars

I tried doing a beginner problem with Codewars. For some reason it works in VS but gets an error when I put it into Codewars. Anyone got a clue what's wrong?

tests/Fixture.cs(16,12): error CS0266: Cannot implicitly convert type 'long' to 'int'. An explicit conversion exists (are you missing a cast?)
image.png
Was this page helpful?