title: Id returned 1 exit status in C and I can't find my mistake
body: <pre><code>#include &lt;stdio.h&gt;
  
  int wednesday(){
    int discount;
    printf(&quot;You are lucky on Wednesdays! You can get discount!\n&quot;);
    printf(&quot;Is today wednesday? Yes = 1  No= 2\n&quot;);
    scanf(&quot;%d&quot;, &amp;discount);
    return discount;
  }
  
  void cost(int wednesday){
    int price;
    int discount;
    if(discount == 1){
      price = price - 2;
    }
    else{
      price = price;
    }
  }
  
  void main(){
    int discount;
      
    welcome();
    discount = wednesday();
    cost(discount);
  }
  </code></pre>
  <p>I write other codes too but this part didn't work I couldn't find my mistake. I would be really happy if you help me to find my mistake.</p>