sayucodes-LADDU.cpp: In function ‘int func(char*, int, int)’:
sayucodes-LADDU.cpp:10:13: warning: comparison with string literal results in unspecified behavior [-Waddress]
if (c1 == "INDIAN")
^~~~~~~~
sayucodes-LADDU.cpp:12:18: warning: comparison with string literal results in unspecified behavior [-Waddress]
else if (c1 == "NON_INDIAN")
^~~~~~~~~~~~
sayucodes-LADDU.cpp: In function ‘int main()’:
sayucodes-LADDU.cpp:16:7: warning: unused variable ‘lad’ [-Wunused-variable]
int lad = 0, t;
^~~
sayucodes-LADDU.cpp: In function ‘int func(char*, int, int)’:
sayucodes-LADDU.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Edit:
Also, please don’t spam your question multiple times