main.c:9:24: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~~
main.c:9:24: note: (near initialization for ‘sym’)
main.c:9:29: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~
main.c:9:29: note: (near initialization for ‘sym’)
main.c:9:33: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~~
main.c:9:33: note: (near initialization for ‘sym’)
main.c:9:38: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~
main.c:9:38: note: (near initialization for ‘sym’)
main.c:9:42: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~~
main.c:9:42: note: (near initialization for ‘sym’)
main.c:9:47: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~~
main.c:9:47: note: (near initialization for ‘sym’)
main.c:9:52: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~
main.c:9:52: note: (near initialization for ‘sym’)
main.c:9:56: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~~
main.c:9:56: note: (near initialization for ‘sym’)
main.c:9:61: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~
main.c:9:61: note: (near initialization for ‘sym’)
main.c:9:65: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~~
main.c:9:65: note: (near initialization for ‘sym’)
main.c:9:70: error: excess elements in char array initializer
9 | char sym[] = { "I","IV","V","IX","X","XL","XC","C","CD","D","CM","M"};
| ^~~
main.c:9:70: note: (near initialization for ‘sym’)
main.c:17:22: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
17 | printf("%s", *(sym + i));
| ~^ ~~~~~~~~~~
| | |
| | int
| char *
| %d
main.c: In function ‘main’:
main.c:28:5: warning: implicit declaration of function ‘scanf_s’; did you mean ‘scanf’? [-Wimplicit-function-declaration]
28 | scanf_s("%d", &number);
| ^~~~~~~
| scanf