rakhisharma

Untitled

Apr 9th, 2016
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 4.72 KB | None | 0 0
  1. rakhi@rakhi-Inspiron-3542:~/CurlyMaths$ gcc -o cquizgame cquizgame.c
  2. cquizgame.c: In function ‘main’:
  3. cquizgame.c:34:6: error: too few arguments to functiontoupper
  4.       choice=toupper();
  5.       ^
  6. cquizgame.c:56:6: warning:gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
  7.       gets(playername);
  8.       ^
  9. cquizgame.c:76:5: error: too few arguments to functiontoupper
  10.      if (toupper()=='Y')
  11.      ^
  12. cquizgame.c:100:3: error: too few arguments to functiontoupper
  13.    if (toupper()=='C')
  14.    ^
  15. cquizgame.c:116:3: error: too few arguments to functiontoupper
  16.    if (toupper()=='C')
  17.    ^
  18. cquizgame.c:128:3: error: too few arguments to functiontoupper
  19.    if (toupper()=='B')
  20.    ^
  21. cquizgame.c:140:3: error: too few arguments to functiontoupper
  22.    if (toupper()=='B')
  23.    ^
  24. cquizgame.c:152:9: error: too few arguments to functiontoupper
  25.          if (toupper()=='B')
  26.          ^
  27. cquizgame.c:164:3: error: too few arguments to functiontoupper
  28.    if (toupper()=='D' )
  29.    ^
  30. cquizgame.c:187:6: error: too few arguments to functiontoupper
  31.       if(toupper()=='p')
  32.       ^
  33. cquizgame.c:200:3: error: too few arguments to functiontoupper
  34.    if (toupper()=='C')
  35.    ^
  36. cquizgame.c:212:3: error: too few arguments to functiontoupper
  37.    if (toupper()=='A')
  38.    ^
  39. cquizgame.c:224:3: error: too few arguments to functiontoupper
  40.    if (toupper()=='C')
  41.    ^
  42. cquizgame.c:235:3: error: too few arguments to functiontoupper
  43.    if (toupper()=='A')
  44.    ^
  45. cquizgame.c:248:3: error: too few arguments to functiontoupper
  46.    if (toupper()=='B')
  47.    ^
  48. cquizgame.c:261:3: error: too few arguments to functiontoupper
  49.    if (toupper()=='B' )
  50.    ^
  51. cquizgame.c:272:3: error: too few arguments to functiontoupper
  52.    if (toupper()=='D')
  53.    ^
  54. cquizgame.c:283:3: error: too few arguments to functiontoupper
  55.    if (toupper()=='B')
  56.    ^
  57. cquizgame.c:293:3: error: too few arguments to functiontoupper
  58.    if (toupper()=='A')
  59.    ^
  60. cquizgame.c:304:3: error: too few arguments to functiontoupper
  61.    if (toupper()=='A')
  62.    ^
  63. cquizgame.c:312:3: error: too few arguments to functiontoupper
  64.    if (toupper()=='C')
  65.    ^
  66. cquizgame.c:322:3: error: too few arguments to functiontoupper
  67.    if (toupper()=='A')
  68.    ^
  69. cquizgame.c:332:3: error: too few arguments to functiontoupper
  70.    if (toupper()=='D')
  71.    ^
  72. cquizgame.c:342:3: error: too few arguments to functiontoupper
  73.    if (toupper()=='A')
  74.    ^
  75. cquizgame.c:352:3: error: too few arguments to functiontoupper
  76.    if (toupper()=='B')
  77.    ^
  78. cquizgame.c:363:3: error: too few arguments to functiontoupper
  79.    if (toupper()=='A')
  80.    ^
  81. cquizgame.c:376:3: error: too few arguments to functiontoupper
  82.    if (toupper()=='A')
  83.    ^
  84. cquizgame.c:386:3: error: too few arguments to functiontoupper
  85.    if (toupper()=='D')
  86.    ^
  87. cquizgame.c:396:3: error: too few arguments to functiontoupper
  88.    if (toupper()=='C')
  89.    ^
  90. cquizgame.c:406:3: error: too few arguments to functiontoupper
  91.    if (toupper()=='B')
  92.    ^
  93. cquizgame.c:416:3: error: too few arguments to functiontoupper
  94.    if (toupper()=='D')
  95.    ^
  96. cquizgame.c:426:3: error: too few arguments to functiontoupper
  97.    if (toupper()=='D')
  98.    ^
  99. cquizgame.c:436:3: error: too few arguments to functiontoupper
  100.    if (toupper()=='C')
  101.    ^
  102. cquizgame.c:466:2: error: too few arguments to functiontoupper
  103.   if (toupper()=='Y')
  104.   ^
  105. cquizgame.c: In function ‘show_record’:
  106. cquizgame.c:479:2: warning: format ‘%s’ expects argument of type ‘char *, but argument 3 has type ‘char (*)[20][-Wformat=]
  107.   fscanf(f,"%s%f",&name,&scr);
  108.   ^
  109. cquizgame.c:484:2: error: ‘retun’ undeclared (first use in this function)
  110.   retun 0;
  111.   ^
  112. cquizgame.c:484:2: note: each undeclared identifier is reported only once for each function it appears in
  113. cquizgame.c:484:8: error: expected ‘;’ before numeric constant
  114.   retun 0;
  115.         ^
  116. cquizgame.c: In function ‘reset_score’:
  117. cquizgame.c:493:2: warning: format ‘%s’ expects argument of type ‘char *, but argument 3 has type ‘char (*)[20][-Wformat=]
  118.   fscanf(f,"%s%f",&nm,&sc);
  119.   ^
  120. cquizgame.c: In function ‘help’:
  121. cquizgame.c:519:2: error: ‘retun’ undeclared (first use in this function)
  122.   retun 0;
  123.   ^
  124. cquizgame.c:519:8: error: expected ‘;’ before numeric constant
  125.   retun 0;
  126.         ^
  127. cquizgame.c: In function ‘edit_score’:
  128. cquizgame.c:528:2: warning: format ‘%s’ expects argument of type ‘char *, but argument 3 has type ‘char (*)[20][-Wformat=]
  129.   fscanf(f,"%s%f",&nm,&sc);
  130.   ^
  131. rakhi@rakhi-Inspiron-3542:~/CurlyMaths$
Add Comment
Please, Sign In to add comment