Language: C

#include <stdio.h>
int min(a,b){        //min関数を定義
  if (a<b) return a;
  else return b;
}

int main(){
  int n,x,m;
  int minimum=1000;
  scanf("%d%d",&n,&x);
  for(int i=0;i<n;i++){　
    scanf("%d",&m);
    x -= m;　　　　　　　　　　　　//i番目のお菓子必ず一個は作るのでxから引く
    minimum = min(minimum,m);  //一番コストのかからないお菓子を覚えておく
  }
  printf("%d",n+x/minimum);　
}


Compiler output:
main.c: In function 'min':
main.c:2:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
    2 | int min(a,b){        //min関数を定義
      |     ^~~
main.c:2:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c: In function 'main':
main.c:11:24: error: stray '\343' in program
   11 |   for(int i=0;i<n;i++){<U+3000>
      |                        ^~~~~~~~
main.c:13:12: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |            ^~~~~~~~
main.c:13:14: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                    ^~~~~~~~
main.c:13:16: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                            ^~~~~~~~
main.c:13:18: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                                    ^~~~~~~~
main.c:13:20: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                                            ^~~~~~~~
main.c:13:22: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                                                    ^~~~~~~~
main.c:13:24: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                                                            ^~~~~~~~
main.c:13:26: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                                                                    ^~~~~~~~
main.c:13:28: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                                                                            ^~~~~~~~
main.c:13:30: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                                                                                    ^~~~~~~~
main.c:13:32: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                                                                                            ^~~~~~~~
main.c:13:34: error: stray '\343' in program
   13 |     x -= m;<U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>//i<U+756A><U+76EE><U+306E><U+304A><U+83D3><U+5B50><U+5FC5><U+305A><U+4E00><U+500B><U+306F><U+4F5C><U+308B><U+306E><U+3067>x<U+304B><U+3089><U+5F15><U+304F>
      |                                                                                                    ^~~~~~~~
main.c:16:28: error: stray '\343' in program
   16 |   printf("%d",n+x/minimum);<U+3000>
      |                            ^~~~~~~~