Record Detail

Accepted

In file included from /in/terminal.c:9:0:
/in/terminal.c: In function 'save':
/in/compile/terminal.h:13:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
 #define RED     "\033[31m"      /* Red */
                 ^
/in/terminal.c:158:17: note: in expansion of macro 'RED'
         fprintf(RED"%s does not exist, save sample.txt by default.\n"RESET,filename);
                 ^~~
In file included from /in/terminal.c:5:0:
/usr/include/stdio.h:312:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'char *'
 extern int fprintf (FILE *__restrict __stream,
            ^~~~~~~
/in/terminal.c:158:9: warning: format not a string literal and no format arguments [-Wformat-security]
         fprintf(RED"%s does not exist, save sample.txt by default.\n"RESET,filename);
         ^~~~~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 2ms 1.051 MiB
#2 Accepted Detail 2ms 1000.0 KiB
#3 Accepted Detail 2ms 900.0 KiB
#4 Accepted Detail 2ms 1008.0 KiB
#5 Accepted Detail 2ms 1008.0 KiB

Information

Submit By
Type
Submission
Homework
Lab11 Thu
Language
C
Submit At
2024-08-01 21:24:25
Judged At
2024-08-01 21:24:25
Judged By
Score
15
Total Time
12ms
Peak Memory
1.051 MiB