fork download
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int Plus(int a,int b)
  6. {
  7. return a + b;
  8. }
  9.  
  10. void Minus(int a,int b,int c)
  11. {
  12. c = a - b;
  13. cout << c << endl;
  14. }
  15.  
  16. // 프로그램 주 실행 점.
  17. void main()
  18. {
  19. int a = 5;
  20. int b = 10;
  21. int c = Plus(a,b);
  22.  
  23. Minus(a,b,c);
  24. cout << c << endl;
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:17:11: error: ‘::main’ must return ‘int’
 void main()
           ^
stdout
Standard output is empty