Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rakhi@rakhi-Inspiron-3542:~/CurlyMaths$ gcc -o cquizgame cquizgame.c
- cquizgame.c: In function ‘main’:
- cquizgame.c:34:6: error: too few arguments to function ‘toupper’
- choice=toupper();
- ^
- cquizgame.c:56:6: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
- gets(playername);
- ^
- cquizgame.c:76:5: error: too few arguments to function ‘toupper’
- if (toupper()=='Y')
- ^
- cquizgame.c:100:3: error: too few arguments to function ‘toupper’
- if (toupper()=='C')
- ^
- cquizgame.c:116:3: error: too few arguments to function ‘toupper’
- if (toupper()=='C')
- ^
- cquizgame.c:128:3: error: too few arguments to function ‘toupper’
- if (toupper()=='B')
- ^
- cquizgame.c:140:3: error: too few arguments to function ‘toupper’
- if (toupper()=='B')
- ^
- cquizgame.c:152:9: error: too few arguments to function ‘toupper’
- if (toupper()=='B')
- ^
- cquizgame.c:164:3: error: too few arguments to function ‘toupper’
- if (toupper()=='D' )
- ^
- cquizgame.c:187:6: error: too few arguments to function ‘toupper’
- if(toupper()=='p')
- ^
- cquizgame.c:200:3: error: too few arguments to function ‘toupper’
- if (toupper()=='C')
- ^
- cquizgame.c:212:3: error: too few arguments to function ‘toupper’
- if (toupper()=='A')
- ^
- cquizgame.c:224:3: error: too few arguments to function ‘toupper’
- if (toupper()=='C')
- ^
- cquizgame.c:235:3: error: too few arguments to function ‘toupper’
- if (toupper()=='A')
- ^
- cquizgame.c:248:3: error: too few arguments to function ‘toupper’
- if (toupper()=='B')
- ^
- cquizgame.c:261:3: error: too few arguments to function ‘toupper’
- if (toupper()=='B' )
- ^
- cquizgame.c:272:3: error: too few arguments to function ‘toupper’
- if (toupper()=='D')
- ^
- cquizgame.c:283:3: error: too few arguments to function ‘toupper’
- if (toupper()=='B')
- ^
- cquizgame.c:293:3: error: too few arguments to function ‘toupper’
- if (toupper()=='A')
- ^
- cquizgame.c:304:3: error: too few arguments to function ‘toupper’
- if (toupper()=='A')
- ^
- cquizgame.c:312:3: error: too few arguments to function ‘toupper’
- if (toupper()=='C')
- ^
- cquizgame.c:322:3: error: too few arguments to function ‘toupper’
- if (toupper()=='A')
- ^
- cquizgame.c:332:3: error: too few arguments to function ‘toupper’
- if (toupper()=='D')
- ^
- cquizgame.c:342:3: error: too few arguments to function ‘toupper’
- if (toupper()=='A')
- ^
- cquizgame.c:352:3: error: too few arguments to function ‘toupper’
- if (toupper()=='B')
- ^
- cquizgame.c:363:3: error: too few arguments to function ‘toupper’
- if (toupper()=='A')
- ^
- cquizgame.c:376:3: error: too few arguments to function ‘toupper’
- if (toupper()=='A')
- ^
- cquizgame.c:386:3: error: too few arguments to function ‘toupper’
- if (toupper()=='D')
- ^
- cquizgame.c:396:3: error: too few arguments to function ‘toupper’
- if (toupper()=='C')
- ^
- cquizgame.c:406:3: error: too few arguments to function ‘toupper’
- if (toupper()=='B')
- ^
- cquizgame.c:416:3: error: too few arguments to function ‘toupper’
- if (toupper()=='D')
- ^
- cquizgame.c:426:3: error: too few arguments to function ‘toupper’
- if (toupper()=='D')
- ^
- cquizgame.c:436:3: error: too few arguments to function ‘toupper’
- if (toupper()=='C')
- ^
- cquizgame.c:466:2: error: too few arguments to function ‘toupper’
- if (toupper()=='Y')
- ^
- cquizgame.c: In function ‘show_record’:
- cquizgame.c:479:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[20]’ [-Wformat=]
- fscanf(f,"%s%f",&name,&scr);
- ^
- cquizgame.c:484:2: error: ‘retun’ undeclared (first use in this function)
- retun 0;
- ^
- cquizgame.c:484:2: note: each undeclared identifier is reported only once for each function it appears in
- cquizgame.c:484:8: error: expected ‘;’ before numeric constant
- retun 0;
- ^
- cquizgame.c: In function ‘reset_score’:
- cquizgame.c:493:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[20]’ [-Wformat=]
- fscanf(f,"%s%f",&nm,&sc);
- ^
- cquizgame.c: In function ‘help’:
- cquizgame.c:519:2: error: ‘retun’ undeclared (first use in this function)
- retun 0;
- ^
- cquizgame.c:519:8: error: expected ‘;’ before numeric constant
- retun 0;
- ^
- cquizgame.c: In function ‘edit_score’:
- cquizgame.c:528:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[20]’ [-Wformat=]
- fscanf(f,"%s%f",&nm,&sc);
- ^
- rakhi@rakhi-Inspiron-3542:~/CurlyMaths$
Add Comment
Please, Sign In to add comment