fork download
  1. void
  2. func(){
  3. int v = 0;
  4. int w = 0;
  5. }
  6.  
  7. int
  8. main(){
  9. int v = 0;
  10. func(10);
  11. return 0;
  12. }
  13.  
  14. /**
  15. :before
  16. [Message] : g++ -std=gnu++0x -Wall -I"D : /boost/boost_1_47_0" -o main main.cpp
  17. [Message] : main.cpp : In function 'void func()'
  18. [Warning] : main.cpp : unused variable 'v'
  19. [Warning] : main.cpp : unused variable 'w'
  20. [Message] : main.cpp : In function 'int main()'
  21. [Error ] : main.cpp : too many arguments to function 'void func()'
  22. [Message] : main.cpp : declared here
  23. [Warning] : main3.cpp : unused variable 'v'
  24.  
  25. :after
  26. [Message] : g++ -std=gnu++0x -Wall -I"D : /boost/boost_1_47_0" -o main main.cpp
  27. [Message] : main.cpp : In function 'void func()'
  28. [Warning] : main.cpp : unused variable 'v'
  29. [Warning] : main.cpp : unused variable 'w'
  30. [Message] : main.cpp : In function 'int main()'
  31. [Error ] : main.cpp : too many arguments to function 'void func()'
  32. [Message] : main.cpp : declared here
  33. [Warning] : main.cpp : unused variable 'v'
  34. */
  35.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘void func()’:
prog.cpp:3: warning: unused variable ‘v’
prog.cpp:4: warning: unused variable ‘w’
prog.cpp: In function ‘int main()’:
prog.cpp:2: error: too many arguments to function ‘void func()’
prog.cpp:10: error: at this point in file
prog.cpp:9: warning: unused variable ‘v’
stdout
Standard output is empty