fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int i=0;
  5. int j;
  6. scanf("%d",&j);
  7. while(i<4)
  8. {
  9.  
  10. while(j>0)
  11. {
  12. printf("%c",&c);
  13. j--;
  14. }
  15. j=j-2;
  16. int k=1;
  17. while(k<=i)
  18. {
  19. printf("%d",k);
  20. k++;
  21. }
  22. int l=1;
  23. while(l<i)
  24. {
  25. printf("%d",l);
  26. l++;
  27. }
  28. printf("\n");
  29. i++;
  30. }
  31. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:12: error: ‘c’ was not declared in this scope
prog.cpp:6: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
stdout
Standard output is empty