fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int money= 3800, candy_price=300, candy_count=12, change=200
  5. printf("현재가지고 있는 돈을 입력하세요:",money);
  6. printf("살수있는 캔디의 갯수:");
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:4: error: expected ‘,’ or ‘;’ before ‘printf’
    printf("현재가지고 있는 돈을 입력하세요:",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
                     ^~~~~~~~~~~
prog.c:4:8: warning: unused variable ‘money’ [-Wunused-variable]
    int money= 3800, candy_price=300, candy_count=12, change=200
        ^~~~~
stdout
Standard output is empty