fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int money= 3800, candy_price=300, candy_count=12, change=200;
  5. printf("현재가지고 있는 돈을 입력하세요:");
  6. scanf_s("%d",money);
  7. printf("살수있는 캔디의 갯수:");
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:4: warning: implicit declaration of function ‘scanf_s’ [-Wimplicit-function-declaration]
    scanf_s("%d",money);
    ^~~~~~~
prog.c:4:54: warning: unused variable ‘change’ [-Wunused-variable]
    int money= 3800, candy_price=300, candy_count=12, change=200;
                                                      ^~~~~~
prog.c:4:38: warning: unused variable ‘candy_count’ [-Wunused-variable]
    int money= 3800, candy_price=300, candy_count=12, change=200;
                                      ^~~~~~~~~~~
prog.c:4:21: warning: unused variable ‘candy_price’ [-Wunused-variable]
    int money= 3800, candy_price=300, candy_count=12, change=200;
                     ^~~~~~~~~~~
/home/ww9TDc/ccTooH3H.o: In function `main':
prog.c:(.text.startup+0x21): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty