fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int N = 10;
  6. char **tekst=(char **)malloc(N*sizeof(char*));
  7. for(int i=0;i<N;i++)
  8. {
  9. int x;
  10. scanf("%d",&x);
  11. char *tekst=(char *)malloc(x*sizeof(char));
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
Standard output is empty