Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.71 KB | None | 0 0
  1. #include<string.h>
  2. #include<stdio.h>
  3. #include<math.h>
  4.  
  5. //calculating resistance based on first three bands
  6. int resistance_calc(const char *a[], const char *b[], const char *c[], const char *d[]){
  7.  
  8. int first, second, third, fourth;
  9.  
  10.  
  11. if((strcmp(a, 'Brown') || strcmp(a, 'BROWN') || strcmp(a, 'brown'))==1)
  12. first = 1;
  13. if((strcmp(a, 'Red') || strcmp(a, 'RED') || strcmp(a, 'red'))==1)
  14. first = 2;
  15. if((strcmp(a, 'Orange') || strcmp(a, 'ORANGE') || strcmp(a, 'orange'))==1)
  16. first = 3;
  17. if((strcmp(a, 'Yellow') || strcmp(a, 'YELLOW') || strcmp(a, 'yellow'))==1)
  18. first = 4;
  19. if((strcmp(a, 'Green') || strcmp(a, 'GREEN') || strcmp(a, 'green'))==1)
  20. first = 5;
  21. if((strcmp(a, 'Blue') || strcmp(a, 'BLUE') || strcmp(a, 'blue'))==1)
  22. first = 6;
  23. if((strcmp(a, 'Violet') || strcmp(a, 'VIOLET') || strcmp(a, 'violet'))==1)
  24. first = 7;
  25. if((strcmp(a, 'Gray') || strcmp(a, 'GRAY') || strcmp(a, 'gray'))==1)
  26. first = 8;
  27.  
  28. if((strcmp(a, 'White') || strcmp(a, 'WHITE') || strcmp(a, 'white'))==1)
  29. first = 9;
  30. else
  31. printf("Please input a valid first band color (red, orange, yellow, green, violet, gray or white)");
  32. scanf("%s", a);
  33.  
  34.  
  35. if((strcmp(b, 'Black') || strcmp(b, 'BLACK') || strcmp(b, 'black'))==1)
  36. second = 0;
  37. if((strcmp(b, 'Brown') || strcmp(b, 'BROWN') || strcmp(b, 'brown'))==1)
  38. second = 1;
  39. if((strcmp(b, 'Red') || strcmp(b, 'RED') || strcmp(b, 'red'))==1)
  40. second = 2;
  41. if((strcmp(b, 'Orange') || strcmp(b, 'ORANGE') || strcmp(b, 'orange'))==1)
  42. second = 3;
  43. if((strcmp(b, 'Yellow') || strcmp(b, 'YELLOW') || strcmp(b, 'yellow'))==1)
  44. second = 4;
  45. if((strcmp(b, 'Green') || strcmp(b, 'GREEN') || strcmp(b, 'green'))==1)
  46. second = 5;
  47. if((strcmp(b, 'Blue') || strcmp(b, 'BLUE') || strcmp(b, 'blue'))==1)
  48. second = 6;
  49. if((strcmp(b, 'Violet') || strcmp(b, 'VIOLET') || strcmp(b, 'violet'))==1)
  50. second = 7;
  51. if((strcmp(b, 'Gray') || strcmp(b, 'GRAY') || strcmp(b, 'gray'))==1)
  52. second = 8;
  53. if((strcmp(b, 'White') || strcmp(b, 'WHITE') || strcmp(b, 'white'))==1)
  54. second = 9;
  55. else
  56. printf("Please input a valid second band color (black, red, orange, yellow, green, violet, gray or white)");
  57. scanf("%s", b);
  58.  
  59.  
  60. if((strcmp(c, 'Black') || strcmp(c, 'BLACK') || strcmp(c, 'black'))==1)
  61. third = 0;
  62. if((strcmp(c, 'Brown') || strcmp(c, 'BROWN') || strcmp(c, 'brown'))==1)
  63. third = 1;
  64. if((strcmp(c, 'Red') || strcmp(c, 'RED') || strcmp(c, 'red'))==1)
  65. third = 2;
  66. if((strcmp(c, 'Orange') || strcmp(c, 'ORANGE') || strcmp(c, 'orange'))==1)
  67. third = 3;
  68. if((strcmp(c, 'Yellow') || strcmp(c, 'YELLOW') || strcmp(c, 'yellow'))==1)
  69. third = 4;
  70. if((strcmp(c, 'Green') || strcmp(c, 'GREEN') || strcmp(c, 'green'))==1)
  71. third = 5;
  72. if((strcmp(c, 'Blue') || strcmp(c, 'BLUE') || strcmp(c, 'blue'))==1)
  73. third = 6;
  74. if((strcmp(c, 'Violet') || strcmp(c, 'VIOLET') || strcmp(c, 'violet'))==1)
  75. third = 7;
  76. if((strcmp(c, 'Gray') || strcmp(c, 'GRAY') || strcmp(c, 'gray'))==1)
  77. third = 8;
  78. if((strcmp(c, 'White') || strcmp(c, 'WHITE') || strcmp(c, 'white'))==1)
  79. third = 9;
  80. else
  81. printf("Please input a valid third band color (black, red, orange, yellow, green, violet, gray or white)");
  82. scanf("%s", c);
  83.  
  84.  
  85. if((strcmp(d, 'Silver') || strcmp(d, 'SILVER') || strcmp(d, 'silver'))==1)
  86. fourth = pow(10,-2);
  87. if((strcmp(d, 'Gold') || strcmp(d, 'GOLD') || strcmp(d, 'gold'))==1)
  88. fourth = pow(10, -1);
  89. if((strcmp(d, 'Black') || strcmp(d, 'BLACK') || strcmp(d, 'black'))==1)
  90. fourth = pow(10, 0);
  91. if((strcmp(d, 'Brown') || strcmp(d, 'BROWN') || strcmp(d, 'brown'))==1)
  92. fourth = pow(10, 1);
  93. if((strcmp(d, 'Red') || strcmp(d, 'RED') || strcmp(d, 'red'))==1)
  94. fourth = pow(10, 2);
  95. if((strcmp(d, 'Orange') || strcmp(d, 'ORANGE') || strcmp(d, 'orange'))==1)
  96. fourth = pow(10, 3);
  97. if((strcmp(d, 'Yellow') || strcmp(d, 'YELLOW') || strcmp(d, 'yellow'))==1)
  98. fourth = pow(10, 4);
  99. if((strcmp(d, 'Green') || strcmp(d, 'GREEN') || strcmp(d, 'green'))==1)
  100. fourth = pow(10, 5);
  101. if((strcmp(d, 'Blue') || strcmp(d, 'BLUE') || strcmp(d, 'blue'))==1)
  102. fourth = pow(10, 6);
  103. if((strcmp(d, 'Violet') || strcmp(d, 'VIOLET') || strcmp(d, 'violet'))==1)
  104. fourth = pow(10, 7);
  105. if((strcmp(d, 'Gray') || strcmp(d, 'GRAY') || strcmp(d, 'gray'))==1)
  106. fourth = pow(10, 8);
  107. if((strcmp(d, 'White') || strcmp(d, 'WHITE') || strcmp(d, 'white'))==1)
  108. fourth = pow(10, 9);
  109. else
  110. printf("Please input a valid fourth band color (silver, gold, black, red, orange, yellow, green, violet, gray or white)");
  111. scanf("%s", d);
  112.  
  113. return (((first*100)+(second*10)+(third))*fourth);
  114. }
  115.  
  116. int main(void)
  117. {
  118. char str[100]="";
  119. char *bands[6];
  120. int i;
  121. float resistance;
  122. //Reads in a string
  123. fgets(str, 100, stdin);
  124.  
  125. //Seperates the string, by space character, into an array
  126. bands[0]=strtok(str,' ');
  127. if(bands[0]==NULL)
  128. {
  129. printf("Please input the six color bands from you resistor.\n");
  130. return (0);
  131. }
  132.  
  133. for(i=1;i<6;i++)
  134. {
  135. bands[i]=strtok(NULL,' ');
  136. if(bands[i]==NULL)
  137. break;
  138. }
  139.  
  140. resistance = resistance_calc(&bands[0], &bands[1], &bands[2], &bands[3]);
  141.  
  142. printf("%10.4f Ohms\n", resistance);
  143.  
  144. return 0;
  145. }
  146.  
  147.  
  148. --------------------------------------------------------------------------------------------------
  149. >gcc -Wall program.c
  150.  
  151. The error is longer than the terminal window is allowing:
  152.  
  153. program.c:27:37: warning: character constant too long for its type
  154. program.c:27: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  155. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  156. program.c:27: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  157. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  158. program.c:27:59: warning: character constant too long for its type
  159. program.c:27: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  160. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  161. program.c:27: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  162. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  163. program.c:31: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘const char **’
  164. program.c:34:15: warning: character constant too long for its type
  165. program.c:34: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  166. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  167. program.c:34: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  168. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  169. program.c:34:37: warning: character constant too long for its type
  170. program.c:34: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  171. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  172. program.c:34: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  173. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  174. program.c:34:59: warning: character constant too long for its type
  175. program.c:34: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  176. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  177. program.c:34: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  178. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  179. program.c:36:15: warning: character constant too long for its type
  180. program.c:36: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  181. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  182. program.c:36: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  183. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  184. program.c:36:37: warning: character constant too long for its type
  185. program.c:36: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  186. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  187. program.c:36: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  188. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  189. program.c:36:59: warning: character constant too long for its type
  190. program.c:36: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  191. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  192. program.c:36: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  193. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  194. program.c:38:15: warning: multi-character character constant
  195. program.c:38: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  196. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  197. program.c:38: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  198. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  199. program.c:38:35: warning: multi-character character constant
  200. program.c:38: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  201. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  202. program.c:38: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  203. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  204. program.c:38:55: warning: multi-character character constant
  205. program.c:38: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  206. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  207. program.c:38: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  208. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  209. program.c:40:15: warning: character constant too long for its type
  210. program.c:40: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  211. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  212. program.c:40: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  213. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  214. program.c:40:38: warning: character constant too long for its type
  215. program.c:40: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  216. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  217. program.c:40: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  218. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  219. program.c:40:61: warning: character constant too long for its type
  220. program.c:40: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  221. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  222. program.c:40: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  223. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  224. program.c:42:15: warning: character constant too long for its type
  225. program.c:42: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  226. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  227. program.c:42: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  228. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  229. program.c:42:38: warning: character constant too long for its type
  230. program.c:42: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  231. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  232. program.c:42: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  233. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  234. program.c:42:61: warning: character constant too long for its type
  235. program.c:42: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  236. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  237. program.c:42: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  238. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  239. program.c:44:15: warning: character constant too long for its type
  240. program.c:44: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  241. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  242. program.c:44: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  243. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  244. program.c:44:37: warning: character constant too long for its type
  245. program.c:44: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  246. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  247. program.c:44: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  248. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  249. program.c:44:59: warning: character constant too long for its type
  250. program.c:44: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  251. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  252. program.c:44: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  253. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  254. program.c:46:15: warning: multi-character character constant
  255. program.c:46: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  256. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  257. program.c:46: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  258. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  259. program.c:46:36: warning: multi-character character constant
  260. program.c:46: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  261. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  262. program.c:46: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  263. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  264. program.c:46:57: warning: multi-character character constant
  265. program.c:46: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  266. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  267. program.c:46: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  268. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  269. program.c:48:15: warning: character constant too long for its type
  270. program.c:48: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  271. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  272. program.c:48: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  273. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  274. program.c:48:38: warning: character constant too long for its type
  275. program.c:48: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  276. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  277. program.c:48: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  278. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  279. program.c:48:62: warning: character constant too long for its type
  280. program.c:48: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  281. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  282. program.c:48: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  283. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  284. program.c:50:15: warning: multi-character character constant
  285. program.c:50: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  286. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  287. program.c:50: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  288. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  289. program.c:50:36: warning: multi-character character constant
  290. program.c:50: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  291. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  292. program.c:50: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  293. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  294. program.c:50:57: warning: multi-character character constant
  295. program.c:50: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  296. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  297. program.c:50: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  298. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  299. program.c:52:15: warning: character constant too long for its type
  300. program.c:52: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  301. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  302. program.c:52: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  303. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  304. program.c:52:37: warning: character constant too long for its type
  305. program.c:52: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  306. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  307. program.c:52: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  308. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  309. program.c:52:59: warning: character constant too long for its type
  310. program.c:52: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  311. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  312. program.c:52: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  313. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  314. program.c:56: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘const char **’
  315. program.c:59:15: warning: character constant too long for its type
  316. program.c:59: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  317. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  318. program.c:59: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  319. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  320. program.c:59:37: warning: character constant too long for its type
  321. program.c:59: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  322. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  323. program.c:59: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  324. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  325. program.c:59:59: warning: character constant too long for its type
  326. program.c:59: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  327. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  328. program.c:59: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  329. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  330. program.c:61:15: warning: character constant too long for its type
  331. program.c:61: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  332. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  333. program.c:61: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  334. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  335. program.c:61:37: warning: character constant too long for its type
  336. program.c:61: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  337. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  338. program.c:61: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  339. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  340. program.c:61:59: warning: character constant too long for its type
  341. program.c:61: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  342. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  343. program.c:61: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  344. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  345. program.c:63:15: warning: multi-character character constant
  346. program.c:63: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  347. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  348. program.c:63: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  349. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  350. program.c:63:35: warning: multi-character character constant
  351. program.c:63: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  352. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  353. program.c:63: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  354. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  355. program.c:63:55: warning: multi-character character constant
  356. program.c:63: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  357. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  358. program.c:63: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  359. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  360. program.c:65:15: warning: character constant too long for its type
  361. program.c:65: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  362. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  363. program.c:65: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  364. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  365. program.c:65:38: warning: character constant too long for its type
  366. program.c:65: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  367. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  368. program.c:65: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  369. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  370. program.c:65:61: warning: character constant too long for its type
  371. program.c:65: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  372. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  373. program.c:65: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  374. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  375. program.c:67:15: warning: character constant too long for its type
  376. program.c:67: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  377. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  378. program.c:67: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  379. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  380. program.c:67:38: warning: character constant too long for its type
  381. program.c:67: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  382. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  383. program.c:67: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  384. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  385. program.c:67:61: warning: character constant too long for its type
  386. program.c:67: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  387. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  388. program.c:67: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  389. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  390. program.c:69:15: warning: character constant too long for its type
  391. program.c:69: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  392. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  393. program.c:69: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  394. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  395. program.c:69:37: warning: character constant too long for its type
  396. program.c:69: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  397. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  398. program.c:69: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  399. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  400. program.c:69:59: warning: character constant too long for its type
  401. program.c:69: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  402. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  403. program.c:69: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  404. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  405. program.c:71:15: warning: multi-character character constant
  406. program.c:71: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  407. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  408. program.c:71: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  409. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  410. program.c:71:36: warning: multi-character character constant
  411. program.c:71: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  412. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  413. program.c:71: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  414. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  415. program.c:71:57: warning: multi-character character constant
  416. program.c:71: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  417. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  418. program.c:71: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  419. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  420. program.c:73:15: warning: character constant too long for its type
  421. program.c:73: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  422. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  423. program.c:73: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  424. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  425. program.c:73:38: warning: character constant too long for its type
  426. program.c:73: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  427. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  428. program.c:73: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  429. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  430. program.c:73:61: warning: character constant too long for its type
  431. program.c:73: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  432. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  433. program.c:73: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  434. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  435. program.c:75:15: warning: multi-character character constant
  436. program.c:75: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  437. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  438. program.c:75: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  439. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  440. program.c:75:36: warning: multi-character character constant
  441. program.c:75: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  442. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  443. program.c:75: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  444. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  445. program.c:75:57: warning: multi-character character constant
  446. program.c:75: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  447. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  448. program.c:75: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  449. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  450. program.c:77:15: warning: character constant too long for its type
  451. program.c:77: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  452. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  453. program.c:77: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  454. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  455. program.c:77:37: warning: character constant too long for its type
  456. program.c:77: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  457. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  458. program.c:77: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  459. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  460. program.c:77:59: warning: character constant too long for its type
  461. program.c:77: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  462. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  463. program.c:77: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  464. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  465. program.c:81: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘const char **’
  466. program.c:84:15: warning: character constant too long for its type
  467. program.c:84: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  468. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  469. program.c:84: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  470. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  471. program.c:84:38: warning: character constant too long for its type
  472. program.c:84: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  473. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  474. program.c:84: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  475. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  476. program.c:84:61: warning: character constant too long for its type
  477. program.c:84: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  478. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  479. program.c:84: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  480. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  481. program.c:86:15: warning: multi-character character constant
  482. program.c:86: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  483. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  484. program.c:86: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  485. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  486. program.c:86:36: warning: multi-character character constant
  487. program.c:86: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  488. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  489. program.c:86: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  490. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  491. program.c:86:57: warning: multi-character character constant
  492. program.c:86: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  493. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  494. program.c:86: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  495. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  496. program.c:88:15: warning: character constant too long for its type
  497. program.c:88: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  498. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  499. program.c:88: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  500. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  501. program.c:88:37: warning: character constant too long for its type
  502. program.c:88: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  503. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  504. program.c:88: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  505. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  506. program.c:88:59: warning: character constant too long for its type
  507. program.c:88: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  508. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  509. program.c:88: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  510. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  511. program.c:90:15: warning: character constant too long for its type
  512. program.c:90: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  513. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  514. program.c:90: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  515. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  516. program.c:90:37: warning: character constant too long for its type
  517. program.c:90: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  518. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  519. program.c:90: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  520. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  521. program.c:90:59: warning: character constant too long for its type
  522. program.c:90: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  523. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  524. program.c:90: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  525. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  526. program.c:92:15: warning: multi-character character constant
  527. program.c:92: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  528. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  529. program.c:92: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  530. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  531. program.c:92:35: warning: multi-character character constant
  532. program.c:92: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  533. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  534. program.c:92: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  535. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  536. program.c:92:55: warning: multi-character character constant
  537. program.c:92: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  538. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  539. program.c:92: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  540. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  541. program.c:94:15: warning: character constant too long for its type
  542. program.c:94: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  543. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  544. program.c:94: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  545. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  546. program.c:94:38: warning: character constant too long for its type
  547. program.c:94: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  548. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  549. program.c:94: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  550. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  551. program.c:94:61: warning: character constant too long for its type
  552. program.c:94: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  553. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  554. program.c:94: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  555. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  556. program.c:96:15: warning: character constant too long for its type
  557. program.c:96: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  558. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  559. program.c:96: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  560. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  561. program.c:96:38: warning: character constant too long for its type
  562. program.c:96: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  563. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  564. program.c:96: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  565. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  566. program.c:96:61: warning: character constant too long for its type
  567. program.c:96: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  568. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  569. program.c:96: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  570. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  571. program.c:98:15: warning: character constant too long for its type
  572. program.c:98: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  573. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  574. program.c:98: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  575. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  576. program.c:98:37: warning: character constant too long for its type
  577. program.c:98: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  578. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  579. program.c:98: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  580. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  581. program.c:98:59: warning: character constant too long for its type
  582. program.c:98: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  583. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  584. program.c:98: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  585. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  586. program.c:100:15: warning: multi-character character constant
  587. program.c:100: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  588. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  589. program.c:100: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  590. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  591. program.c:100:36: warning: multi-character character constant
  592. program.c:100: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  593. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  594. program.c:100: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  595. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  596. program.c:100:57: warning: multi-character character constant
  597. program.c:100: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  598. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  599. program.c:100: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  600. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  601. program.c:102:15: warning: character constant too long for its type
  602. program.c:102: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  603. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  604. program.c:102: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  605. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  606. program.c:102:38: warning: character constant too long for its type
  607. program.c:102: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  608. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  609. program.c:102: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  610. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  611. program.c:102:61: warning: character constant too long for its type
  612. program.c:102: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  613. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  614. program.c:102: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  615. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  616. program.c:104:15: warning: multi-character character constant
  617. program.c:104: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  618. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  619. program.c:104: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  620. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  621. program.c:104:36: warning: multi-character character constant
  622. program.c:104: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  623. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  624. program.c:104: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  625. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  626. program.c:104:57: warning: multi-character character constant
  627. program.c:104: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  628. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  629. program.c:104: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  630. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  631. program.c:106:15: warning: character constant too long for its type
  632. program.c:106: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  633. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  634. program.c:106: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  635. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  636. program.c:106:37: warning: character constant too long for its type
  637. program.c:106: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  638. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  639. program.c:106: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  640. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  641. program.c:106:59: warning: character constant too long for its type
  642. program.c:106: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
  643. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
  644. program.c:106: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
  645. /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
  646. program.c:110: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘const char **’
  647. program.c: In function ‘main’:
  648. program.c:125: warning: passing argument 2 of ‘strtok’ makes pointer from integer without a cast
  649. /usr/include/string.h:346: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
  650. program.c:134: warning: passing argument 2 of ‘strtok’ makes pointer from integer without a cast
  651. /usr/include/string.h:346: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
  652. program.c:139: warning: passing argument 1 of ‘resistance_calc’ from incompatible pointer type
  653. program.c:6: note: expected ‘const char **’ but argument is of type ‘char **’
  654. program.c:139: warning: passing argument 2 of ‘resistance_calc’ from incompatible pointer type
  655. program.c:6: note: expected ‘const char **’ but argument is of type ‘char **’
  656. program.c:139: warning: passing argument 3 of ‘resistance_calc’ from incompatible pointer type
  657. program.c:6: note: expected ‘const char **’ but argument is of type ‘char **’
  658. program.c:139: warning: passing argument 4 of ‘resistance_calc’ from incompatible pointer type
  659. program.c:6: note: expected ‘const char **’ but argument is of type ‘char **’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement