# Application won't compile with an error

**URL:** <https://forum.codewithmosh.com/t/application-wont-compile-with-an-error/17861>\
**Category:** C#\
**Created:** [January 23, 2023, 2:21am UTC](https://forum.codewithmosh.com/t/application-wont-compile-with-an-error/17861 "2023-01-23T02:21:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![UniqueNospaceShort](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/uniquenospaceshort/32/1814_2.png) [@UniqueNospaceShort](https://forum.codewithmosh.com/u/UniqueNospaceShort)\
**Post date:** [January 24, 2023, 9:26pm UTC](https://forum.codewithmosh.com/t/application-wont-compile-with-an-error/17861/4 "2023-01-24T21:26:28Z")

</div>

Hi  
Your code is faulty.

This is how it appears in VS Code after a first pass of indenting

![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/3/3e6da4a195ff534731f906486d42ff30aafc5369.png)

This cannot work.

You input 2 method signatures for only one scope.

Where is the `main()` method body?  
What about `Execrcise1()`?

I made an example of your code working [@.NET Fiddle](https://dotnetfiddle.net/CdMd4X).

Cheers

---

_[View the full topic](https://forum.codewithmosh.com/t/application-wont-compile-with-an-error/17861)._
