fork download
  1. #include<bits/std.c++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int s;
  6. cout<<"enter how many no you want to store";
  7. cin >> s;
  8. int *L;
  9. L = (int *) malloc(s * sizeof(int));
  10. if(*L != NULL)
  11. {
  12. int i=0;
  13. while(i<s)
  14. {
  15. cout<<"enter no";
  16. cin>>L[i];
  17. cout<<endl;
  18. i++;
  19. }
  20. }
  21. for(int i=0;i<s;i++)
  22. {
  23. cout<<"you have enter";
  24. cout<<L[i];
  25. cout<<endl;
  26. }
  27.  
  28. return 0;
  29. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:25: fatal error: bits/std.c++.h: No such file or directory
 #include<bits/std.c++.h>
                         ^
compilation terminated.
stdout
Standard output is empty