fork download
  1. void f1(int a, int &b, char r)
  2. {
  3. int one;
  4. one=a;
  5. a++;
  6. b*=2;
  7. r='B';
  8. cout<<a<<b<<r;
  9. cout<<one<<endL;
  10. }
  11. void f2( int &x, int y , char &w )
  12. {
  13. x++;
  14. y=y*2;
  15. w='G';
  16. cout<<x<<y<<w<<endL;
  17. }
  18. void main ()
  19. {
  20. int n1=1 , n2=3;
  21. ch='A';
  22. cout<<n1<<n2<<ch<<endL;
  23. f1(n1,n2,ch);
  24. cout<<n1<<n2<<ch<<endL;
  25. f2(n2,25,ch);
  26. cout<<n1<<n2<<ch<<endL;
  27. }
  28.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘void f1(int, int&, char)’:
prog.cpp:8: error: ‘cout’ was not declared in this scope
prog.cpp:9: error: ‘endL’ was not declared in this scope
prog.cpp: In function ‘void f2(int&, int, char&)’:
prog.cpp:16: error: ‘cout’ was not declared in this scope
prog.cpp:16: error: ‘endL’ was not declared in this scope
prog.cpp: At global scope:
prog.cpp:18: error: ‘::main’ must return ‘int’
prog.cpp: In function ‘int main()’:
prog.cpp:21: error: ‘ch’ was not declared in this scope
prog.cpp:22: error: ‘cout’ was not declared in this scope
prog.cpp:22: error: ‘endL’ was not declared in this scope
stdout

Standard output is empty