fork download
  1. # include <stdio.h>
  2. int main(void){
  3.  
  4. int (1, 2, 3, 4, 5);
  5. printf("Enter a number between 1 and 5 to randomly generate a fantasy plot sequence :\n ");
  6.  
  7. while (int =1);
  8. printf("A magician went into the past and met his enemy’s mother, and had to choose whether or not to kill her before his enemy was even born.\n");
  9. scanf("%d", &1);
  10.  
  11.  
  12. while ("int =2");
  13. printf("A cyborg was created and went into the future, killing everyone it saw.\n");
  14. scanf("%d", &2);
  15.  
  16. while ("int =3");
  17. printf("A young girl’s father was a necromancer, but when he is murdered in the realm of death, she was figure out how to save him.\n");
  18. scanf("%d", &3);
  19.  
  20. while ("int =4");
  21. printf("A dead creature was called forth from death and given a list of names.\n");
  22. scanf("%d", &4);
  23.  
  24. while ("int =5");
  25. printf("A king who has banned magicians has kept magicians in his court for many years. Because of tension, the king decided to kill all the magicians, save the most powerful of them all: his daughter.\n");
  26. scanf("%d", &5);
  27. break;
  28. while ("int>5 or int <1");
  29. printf("Error! Choose a number less than or equal to 5!\n");
  30.  
  31.  
  32.  
  33. return 0;
  34. }
  35.  
  36.  
  37.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
3
compilation info
prog.c: In function 'main':
prog.c:4:6: error: expected identifier or '(' before numeric constant
 int (1, 2, 3, 4, 5);
      ^
prog.c:7:8: error: expected expression before 'int'
 while (int =1);
        ^
prog.c:9:14: error: lvalue required as unary '&' operand
  scanf("%d", &1);
              ^
prog.c:14:14: error: lvalue required as unary '&' operand
  scanf("%d", &2);
              ^
prog.c:18:14: error: lvalue required as unary '&' operand
  scanf("%d", &3);
              ^
prog.c:22:14: error: lvalue required as unary '&' operand
  scanf("%d", &4);
              ^
prog.c:26:14: error: lvalue required as unary '&' operand
  scanf("%d", &5);
              ^
prog.c:27:13: error: break statement not within loop or switch
             break;
             ^
stdout
Standard output is empty