rakhisharma

Untitled

Apr 5th, 2016
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. cquizgame.c: In function ‘main’:
  2. cquizgame.c:34:6: error: too few arguments to function ‘toupper’
  3. choice=toupper();
  4. ^
  5. cquizgame.c:56:6: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
  6. gets(playername);
  7. ^
  8. cquizgame.c: In function ‘show_record’:
  9. cquizgame.c:478:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[20]’ [-Wformat=]
  10. fscanf(f,"%s%f",&name,&scr);
  11. ^
  12. cquizgame.c: In function ‘reset_score’:
  13. cquizgame.c:491:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[20]’ [-Wformat=]
  14. fscanf(f,"%s%f",&nm,&sc);
  15. ^
  16. cquizgame.c: In function ‘edit_score’:
  17. cquizgame.c:522:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[20]’ [-Wformat=]
  18. fscanf(f,"%s%f",&nm,&sc);
  19. ^
Add Comment
Please, Sign In to add comment