Record Detail

Accepted

/in/terminal.c: In function 'load':
/in/terminal.c:125:26: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'Disk * {aka enum <anonymous> *}' [-Wformat=]
             fscanf(fp, "%d",&(game->board[i][j]));
                         ~^  ~~~~~~~~~~~~~~~~~~~~
In file included from /in/terminal.c:9:0:
/in/terminal.c: In function 'save':
/in/compile/terminal.h:12:17: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
 #define RED     "\033[31m"      /* Red */
                 ^
/in/terminal.c:154:16: note: in expansion of macro 'RED'
         printf(RED"%s does not exist, save sample.txt by default.\n"RESET);
                ^~~
/in/terminal.c:154:21: note: format string is defined here
         printf(RED"%s does not exist, save sample.txt by default.\n"RESET);
                    ~^
# Status Time Cost Memory Cost
#1 Accepted Detail 72ms 2.047 MiB
#2 Accepted Detail 62ms 1.059 MiB
#3 Accepted Detail 2ms 916.0 KiB
#4 Accepted Detail 2ms 920.0 KiB
#5 Accepted Detail 2ms 1.047 MiB
#6 Accepted Detail 2ms 1004.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 9 Exercises
Language
C
Submit At
2022-07-14 23:06:27
Judged At
2022-07-14 23:06:27
Judged By
Score
6
Total Time
145ms
Peak Memory
2.047 MiB