fork(7) download
  1. int tablica [100];
  2.  
  3. int a,n=0;
  4.  
  5. int main()
  6. {
  7.  
  8. while (cin>>a)
  9.  
  10. {
  11. tablica[n]=a;
  12. n++;
  13.  
  14.  
  15. }
  16. for (int i=n;i>=0;i--)
  17.  
  18. cout<<tablica[i]<<" ";
  19.  
  20. return 0;
  21. }
  22.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:8: error: 'cin' was not declared in this scope
prog.cpp:18: error: 'cout' was not declared in this scope
stdout
Standard output is empty