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 968.0 KiB
#2 Accepted Detail 2ms 976.0 KiB
#3 Accepted Detail 2ms 832.0 KiB
#4 Accepted Detail 2ms 988.0 KiB
#5 Accepted Detail 2ms 984.0 KiB

Information

Submit By
Type
Submission
Homework
Lab11 Mon
Language
C
Submit At
2024-08-06 17:03:28
Judged At
2024-08-06 17:03:28
Judged By
Score
15
Total Time
13ms
Peak Memory
988.0 KiB