prog.c: In function ‘main’:
prog.c:8:1: error: unknown type name ‘string’
string msg = "hello";
^
prog.c:8:14: warning: initialization makes integer from pointer without a cast [enabled by default]
string msg = "hello";
^
prog.c:10:1: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i < strleng(msg); i++) {
^
prog.c:10:1: note: use option -std=c99 or -std=gnu99 to compile your code
prog.c:10:1: warning: implicit declaration of function ‘strleng’ [-Wimplicit-function-declaration]
prog.c:11:22: error: subscripted value is neither array nor pointer nor vector
printf("%c", msg[i] + k % 90 + 65);
^
prog.c:14:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^