Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
Project 5 v.06Error(s): source_file.c: In function ‘main’: source_file.c:30:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[0].Grade,"A"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:36:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[1].Grade,"C"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:42:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[2].Grade,"B"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:48:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[3].Grade,"D"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:54:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[4].Grade,"B"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:60:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[5].Grade,"C"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:66:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[6].Grade,"A"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:72:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[7].Grade,"B"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:78:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[8].Grade,"C"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:84:12: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [-Wint-conversion] strcpy(records[9].Grade,"A"); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from source_file.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘char’ __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ source_file.c:87:5: warning: implicit declaration of function ‘printone’ [-Wimplicit-function-declaration] printone(records,N) ^ source_file.c:89:1: error: expected ‘;’ before ‘}’ token } ^ |
λ
.NET NoSQL database for rapid development
|