Advertisement
darius1825

crash

Mar 5th, 2023
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.71 KB | None | 0 0
  1. ./run_tests: line 83: 100 Segmentation fault timelimit -p -t "${TIMEOUT}" -T "${TIMEOUT}" ./student.exe < "${INPUT}" > _output.txt 2> _error.txt
  2. ********************************************************************
  3. ** Test Number: 6 **
  4.  
  5.  
  6. *******************************************
  7. ** your program CRASHED... **
  8. *******************************************
  9.  
  10.  
  11. ** Test Input:
  12. 4
  13. word dorm
  14. word
  15. worm
  16. dzrm
  17. dork
  18. dorm
  19. 1
  20. rips r
  21. ripe
  22. riage
  23. rage
  24. wipe
  25. wupe
  26. wuge
  27. q
  28. 1
  29. r taps
  30. q
  31. 1
  32. r r
  33. q
  34. 1
  35. r r
  36. coat
  37. coats
  38. chat
  39. shat
  40. shwa
  41. shae
  42. shad
  43. shed
  44. shea
  45. shwa
  46. 1
  47. rock duct
  48. dock
  49. duck
  50. duct
  51. 3
  52.  
  53.  
  54. --------- Your Output (first 600 lines) ---------
  55.  
  56.  
  57. --------- Correct Output ---------
  58. Weaver is a game where you try to find a way to get from the starting word to the ending word.
  59. You can change only one letter at a time, and each word along the way must be a valid word.
  60. Enjoy!
  61.  
  62. How many letters do you want to have in the words? Number of 4-letter words found: 7186.
  63.  
  64. Enter starting and ending words, or 'r' for either for a random word: Your starting word is: word.
  65. Your ending word is: dorm.
  66.  
  67. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  68. You may also type in 'q' to quit guessing.
  69.  
  70. 1. Previous word is 'word'. Goal word is 'dorm'. Next word: Your word, 'word', is not exactly 1 character different. Try again.
  71.  
  72. 1. Previous word is 'word'. Goal word is 'dorm'. Next word:
  73. 2. Previous word is 'worm'. Goal word is 'dorm'. Next word: Your word, 'dzrm', is not a valid dictionary word. Try again.
  74.  
  75. 2. Previous word is 'worm'. Goal word is 'dorm'. Next word: Your word, 'dork', is not a valid dictionary word. Try again.
  76.  
  77. 2. Previous word is 'worm'. Goal word is 'dorm'. Next word: Congratulations! You changed 'word' into 'dorm' in 2 moves.
  78.  
  79. Enter: 1 to play again,
  80. 2 to change the number of letters in the words and then play again, or
  81. 3 to exit the program.
  82. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: rips.
  83. Your ending word is: wugg.
  84.  
  85. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  86. You may also type in 'q' to quit guessing.
  87.  
  88. 1. Previous word is 'rips'. Goal word is 'wugg'. Next word:
  89. 2. Previous word is 'ripe'. Goal word is 'wugg'. Next word: Your word, 'riage', is not a 4-letter word. Try again.
  90.  
  91. 2. Previous word is 'ripe'. Goal word is 'wugg'. Next word: Your word, 'rage', is not exactly 1 character different. Try again.
  92.  
  93. 2. Previous word is 'ripe'. Goal word is 'wugg'. Next word:
  94. 3. Previous word is 'wipe'. Goal word is 'wugg'. Next word: Your word, 'wupe', is not a valid dictionary word. Try again.
  95.  
  96. 3. Previous word is 'wipe'. Goal word is 'wugg'. Next word: Your word, 'wuge', is not a valid dictionary word. Try again.
  97.  
  98. 3. Previous word is 'wipe'. Goal word is 'wugg'. Next word:
  99. Enter: 1 to play again,
  100. 2 to change the number of letters in the words and then play again, or
  101. 3 to exit the program.
  102. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: kari.
  103. Your ending word is: taps.
  104.  
  105. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  106. You may also type in 'q' to quit guessing.
  107.  
  108. 1. Previous word is 'kari'. Goal word is 'taps'. Next word:
  109. Enter: 1 to play again,
  110. 2 to change the number of letters in the words and then play again, or
  111. 3 to exit the program.
  112. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: kvah.
  113. Your ending word is: yaru.
  114.  
  115. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  116. You may also type in 'q' to quit guessing.
  117.  
  118. 1. Previous word is 'kvah'. Goal word is 'yaru'. Next word:
  119. Enter: 1 to play again,
  120. 2 to change the number of letters in the words and then play again, or
  121. 3 to exit the program.
  122. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: coax.
  123. Your ending word is: shwa.
  124.  
  125. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  126. You may also type in 'q' to quit guessing.
  127.  
  128. 1. Previous word is 'coax'. Goal word is 'shwa'. Next word:
  129. 2. Previous word is 'coat'. Goal word is 'shwa'. Next word: Your word, 'coats', is not a 4-letter word. Try again.
  130.  
  131. 2. Previous word is 'coat'. Goal word is 'shwa'. Next word:
  132. 3. Previous word is 'chat'. Goal word is 'shwa'. Next word:
  133. 4. Previous word is 'shat'. Goal word is 'shwa'. Next word: Your word, 'shwa', is not exactly 1 character different. Try again.
  134.  
  135. 4. Previous word is 'shat'. Goal word is 'shwa'. Next word: Your word, 'shae', is not a valid dictionary word. Try again.
  136.  
  137. 4. Previous word is 'shat'. Goal word is 'shwa'. Next word:
  138. 5. Previous word is 'shad'. Goal word is 'shwa'. Next word:
  139. 6. Previous word is 'shed'. Goal word is 'shwa'. Next word:
  140. 7. Previous word is 'shea'. Goal word is 'shwa'. Next word: Congratulations! You changed 'coax' into 'shwa' in 7 moves.
  141.  
  142. Enter: 1 to play again,
  143. 2 to change the number of letters in the words and then play again, or
  144. 3 to exit the program.
  145. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: rock.
  146. Your ending word is: duct.
  147.  
  148. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  149. You may also type in 'q' to quit guessing.
  150.  
  151. 1. Previous word is 'rock'. Goal word is 'duct'. Next word:
  152. 2. Previous word is 'dock'. Goal word is 'duct'. Next word:
  153. 3. Previous word is 'duck'. Goal word is 'duct'. Next word: Congratulations! You changed 'rock' into 'duct' in 3 moves.
  154.  
  155. Enter: 1 to play again,
  156. 2 to change the number of letters in the words and then play again, or
  157. 3 to exit the program.
  158. Your choice -->
  159. Thanks for playing!
  160. Exiting...
  161.  
  162.  
  163. ** End of Test 6 **
  164. ********************************************************************
  165.  
  166.  
  167. ./run_tests: line 83: 116 Segmentation fault timelimit -p -t "${TIMEOUT}" -T "${TIMEOUT}" ./student.exe < "${INPUT}" > _output.txt 2> _error.txt
  168. ********************************************************************
  169. ** Test Number: 7 **
  170.  
  171.  
  172. *******************************************
  173. ** your program CRASHED... **
  174. *******************************************
  175.  
  176.  
  177. ** Test Input:
  178. 5
  179. fuel bass
  180. coops ache
  181. skrrr skirz
  182. wince nyula
  183. anvwl third
  184. lever novel
  185. never
  186. navel
  187. nove
  188. novee
  189. never
  190. nevel
  191. novel
  192. 1
  193. r third
  194. shedy
  195. seeds
  196. teeeds
  197. teeds
  198. shads
  199. serds
  200. seids
  201. needs
  202. neers
  203. q
  204. 1
  205. skirt r
  206. shirt
  207. cirt
  208. chirt
  209. churts
  210. churt
  211. churm
  212. churt
  213. chirm
  214. churm
  215. 1
  216. r r
  217. q
  218. 2
  219. 4
  220. r r
  221. coat
  222. coats
  223. chat
  224. shat
  225. shwa
  226. shae
  227. shad
  228. shed
  229. shea
  230. shwa
  231. 1
  232. word dorm
  233. word
  234. worm
  235. dzrm
  236. dork
  237. dorm
  238. 1
  239. tips r
  240. tops
  241. torss
  242. toas
  243. tope
  244. q
  245. 1
  246. r scar
  247. snar
  248. snar
  249. scar
  250. scu
  251. scur
  252. scar
  253. 1
  254. rock duct
  255. dock
  256. duck
  257. duct
  258. 3
  259.  
  260.  
  261. --------- Your Output (first 600 lines) ---------
  262.  
  263.  
  264. --------- Correct Output ---------
  265. Weaver is a game where you try to find a way to get from the starting word to the ending word.
  266. You can change only one letter at a time, and each word along the way must be a valid word.
  267. Enjoy!
  268.  
  269. How many letters do you want to have in the words? Number of 5-letter words found: 15920.
  270.  
  271. Enter starting and ending words, or 'r' for either for a random word: Your word, 'fuel', is not a 5-letter word. Try again.
  272. Enter starting and ending words, or 'r' for either for a random word: Your word, 'ache', is not a 5-letter word. Try again.
  273. Enter starting and ending words, or 'r' for either for a random word: Your word, 'skrrr', is not a valid dictionary word. Try again.
  274. Enter starting and ending words, or 'r' for either for a random word: Your word, 'nyula', is not a valid dictionary word. Try again.
  275. Enter starting and ending words, or 'r' for either for a random word: Your word, 'anvwl', is not a valid dictionary word. Try again.
  276. Enter starting and ending words, or 'r' for either for a random word: Your starting word is: lever.
  277. Your ending word is: novel.
  278.  
  279. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  280. You may also type in 'q' to quit guessing.
  281.  
  282. 1. Previous word is 'lever'. Goal word is 'novel'. Next word:
  283. 2. Previous word is 'never'. Goal word is 'novel'. Next word: Your word, 'navel', is not exactly 1 character different. Try again.
  284.  
  285. 2. Previous word is 'never'. Goal word is 'novel'. Next word: Your word, 'nove', is not a 5-letter word. Try again.
  286.  
  287. 2. Previous word is 'never'. Goal word is 'novel'. Next word: Your word, 'novee', is not a valid dictionary word. Try again.
  288.  
  289. 2. Previous word is 'never'. Goal word is 'novel'. Next word: Your word, 'never', is not exactly 1 character different. Try again.
  290.  
  291. 2. Previous word is 'never'. Goal word is 'novel'. Next word:
  292. 3. Previous word is 'nevel'. Goal word is 'novel'. Next word: Congratulations! You changed 'lever' into 'novel' in 3 moves.
  293.  
  294. Enter: 1 to play again,
  295. 2 to change the number of letters in the words and then play again, or
  296. 3 to exit the program.
  297. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: seedy.
  298. Your ending word is: third.
  299.  
  300. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  301. You may also type in 'q' to quit guessing.
  302.  
  303. 1. Previous word is 'seedy'. Goal word is 'third'. Next word: Your word, 'shedy', is not a valid dictionary word. Try again.
  304.  
  305. 1. Previous word is 'seedy'. Goal word is 'third'. Next word:
  306. 2. Previous word is 'seeds'. Goal word is 'third'. Next word: Your word, 'teeeds', is not a 5-letter word. Try again.
  307.  
  308. 2. Previous word is 'seeds'. Goal word is 'third'. Next word: Your word, 'teeds', is not a valid dictionary word. Try again.
  309.  
  310. 2. Previous word is 'seeds'. Goal word is 'third'. Next word: Your word, 'shads', is not exactly 1 character different. Try again.
  311.  
  312. 2. Previous word is 'seeds'. Goal word is 'third'. Next word: Your word, 'serds', is not a valid dictionary word. Try again.
  313.  
  314. 2. Previous word is 'seeds'. Goal word is 'third'. Next word: Your word, 'seids', is not a valid dictionary word. Try again.
  315.  
  316. 2. Previous word is 'seeds'. Goal word is 'third'. Next word:
  317. 3. Previous word is 'needs'. Goal word is 'third'. Next word: Your word, 'neers', is not a valid dictionary word. Try again.
  318.  
  319. 3. Previous word is 'needs'. Goal word is 'third'. Next word:
  320. Enter: 1 to play again,
  321. 2 to change the number of letters in the words and then play again, or
  322. 3 to exit the program.
  323. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: skirt.
  324. Your ending word is: churm.
  325.  
  326. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  327. You may also type in 'q' to quit guessing.
  328.  
  329. 1. Previous word is 'skirt'. Goal word is 'churm'. Next word:
  330. 2. Previous word is 'shirt'. Goal word is 'churm'. Next word: Your word, 'cirt', is not a 5-letter word. Try again.
  331.  
  332. 2. Previous word is 'shirt'. Goal word is 'churm'. Next word:
  333. 3. Previous word is 'chirt'. Goal word is 'churm'. Next word: Your word, 'churts', is not a 5-letter word. Try again.
  334.  
  335. 3. Previous word is 'chirt'. Goal word is 'churm'. Next word: Your word, 'churt', is not a valid dictionary word. Try again.
  336.  
  337. 3. Previous word is 'chirt'. Goal word is 'churm'. Next word: Your word, 'churm', is not exactly 1 character different. Try again.
  338.  
  339. 3. Previous word is 'chirt'. Goal word is 'churm'. Next word: Your word, 'churt', is not a valid dictionary word. Try again.
  340.  
  341. 3. Previous word is 'chirt'. Goal word is 'churm'. Next word:
  342. 4. Previous word is 'chirm'. Goal word is 'churm'. Next word: Congratulations! You changed 'skirt' into 'churm' in 4 moves.
  343.  
  344. Enter: 1 to play again,
  345. 2 to change the number of letters in the words and then play again, or
  346. 3 to exit the program.
  347. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: whory.
  348. Your ending word is: flyer.
  349.  
  350. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  351. You may also type in 'q' to quit guessing.
  352.  
  353. 1. Previous word is 'whory'. Goal word is 'flyer'. Next word:
  354. Enter: 1 to play again,
  355. 2 to change the number of letters in the words and then play again, or
  356. 3 to exit the program.
  357. Your choice --> How many letters do you want to have in the words? Number of 4-letter words found: 7186.
  358.  
  359. Enter starting and ending words, or 'r' for either for a random word: Your starting word is: coax.
  360. Your ending word is: shwa.
  361.  
  362. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  363. You may also type in 'q' to quit guessing.
  364.  
  365. 1. Previous word is 'coax'. Goal word is 'shwa'. Next word:
  366. 2. Previous word is 'coat'. Goal word is 'shwa'. Next word: Your word, 'coats', is not a 4-letter word. Try again.
  367.  
  368. 2. Previous word is 'coat'. Goal word is 'shwa'. Next word:
  369. 3. Previous word is 'chat'. Goal word is 'shwa'. Next word:
  370. 4. Previous word is 'shat'. Goal word is 'shwa'. Next word: Your word, 'shwa', is not exactly 1 character different. Try again.
  371.  
  372. 4. Previous word is 'shat'. Goal word is 'shwa'. Next word: Your word, 'shae', is not a valid dictionary word. Try again.
  373.  
  374. 4. Previous word is 'shat'. Goal word is 'shwa'. Next word:
  375. 5. Previous word is 'shad'. Goal word is 'shwa'. Next word:
  376. 6. Previous word is 'shed'. Goal word is 'shwa'. Next word:
  377. 7. Previous word is 'shea'. Goal word is 'shwa'. Next word: Congratulations! You changed 'coax' into 'shwa' in 7 moves.
  378.  
  379. Enter: 1 to play again,
  380. 2 to change the number of letters in the words and then play again, or
  381. 3 to exit the program.
  382. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: word.
  383. Your ending word is: dorm.
  384.  
  385. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  386. You may also type in 'q' to quit guessing.
  387.  
  388. 1. Previous word is 'word'. Goal word is 'dorm'. Next word: Your word, 'word', is not exactly 1 character different. Try again.
  389.  
  390. 1. Previous word is 'word'. Goal word is 'dorm'. Next word:
  391. 2. Previous word is 'worm'. Goal word is 'dorm'. Next word: Your word, 'dzrm', is not a valid dictionary word. Try again.
  392.  
  393. 2. Previous word is 'worm'. Goal word is 'dorm'. Next word: Your word, 'dork', is not a valid dictionary word. Try again.
  394.  
  395. 2. Previous word is 'worm'. Goal word is 'dorm'. Next word: Congratulations! You changed 'word' into 'dorm' in 2 moves.
  396.  
  397. Enter: 1 to play again,
  398. 2 to change the number of letters in the words and then play again, or
  399. 3 to exit the program.
  400. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: tips.
  401. Your ending word is: tock.
  402.  
  403. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  404. You may also type in 'q' to quit guessing.
  405.  
  406. 1. Previous word is 'tips'. Goal word is 'tock'. Next word:
  407. 2. Previous word is 'tops'. Goal word is 'tock'. Next word: Your word, 'torss', is not a 4-letter word. Try again.
  408.  
  409. 2. Previous word is 'tops'. Goal word is 'tock'. Next word: Your word, 'toas', is not a valid dictionary word. Try again.
  410.  
  411. 2. Previous word is 'tops'. Goal word is 'tock'. Next word:
  412. 3. Previous word is 'tope'. Goal word is 'tock'. Next word:
  413. Enter: 1 to play again,
  414. 2 to change the number of letters in the words and then play again, or
  415. 3 to exit the program.
  416. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: snur.
  417. Your ending word is: scar.
  418.  
  419. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  420. You may also type in 'q' to quit guessing.
  421.  
  422. 1. Previous word is 'snur'. Goal word is 'scar'. Next word: Your word, 'snar', is not a valid dictionary word. Try again.
  423.  
  424. 1. Previous word is 'snur'. Goal word is 'scar'. Next word: Your word, 'snar', is not a valid dictionary word. Try again.
  425.  
  426. 1. Previous word is 'snur'. Goal word is 'scar'. Next word: Your word, 'scar', is not exactly 1 character different. Try again.
  427.  
  428. 1. Previous word is 'snur'. Goal word is 'scar'. Next word: Your word, 'scu', is not a 4-letter word. Try again.
  429.  
  430. 1. Previous word is 'snur'. Goal word is 'scar'. Next word:
  431. 2. Previous word is 'scur'. Goal word is 'scar'. Next word: Congratulations! You changed 'snur' into 'scar' in 2 moves.
  432.  
  433. Enter: 1 to play again,
  434. 2 to change the number of letters in the words and then play again, or
  435. 3 to exit the program.
  436. Your choice --> Enter starting and ending words, or 'r' for either for a random word: Your starting word is: rock.
  437. Your ending word is: duct.
  438.  
  439. On each move enter a word of the same length that is at most 1 character different and is also in the dictionary.
  440. You may also type in 'q' to quit guessing.
  441.  
  442. 1. Previous word is 'rock'. Goal word is 'duct'. Next word:
  443. 2. Previous word is 'dock'. Goal word is 'duct'. Next word:
  444. 3. Previous word is 'duck'. Goal word is 'duct'. Next word: Congratulations! You changed 'rock' into 'duct' in 3 moves.
  445.  
  446. Enter: 1 to play again,
  447. 2 to change the number of letters in the words and then play again, or
  448. 3 to exit the program.
  449. Your choice -->
  450. Thanks for playing!
  451. Exiting...
  452.  
  453.  
  454. ** End of Test 7 **
  455. ********************************************************************
  456.  
  457.  
  458. ********************************************************************
  459. ** Test Number: 8 **
  460.  
  461.  
  462. ***************************I*******************
  463. ** Your program generated the correct output **
  464. ** Checking valgrind... **
  465. ***********************************************
  466.  
  467.  
  468. *********************************************
  469. ** valgrind reports a memory error or leak **
  470. *********************************************
  471.  
  472.  
  473. ==138== Memcheck, a memory error detector
  474. ==138== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  475. ==138== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
  476. ==138== Command: ./student.exe
  477. ==138==
  478. ==138==
  479. ==138== HEAP SUMMARY:
  480. ==138== in use at exit: 204,480 bytes in 2,130 blocks
  481. ==138== total heap usage: 25,244 allocs, 23,114 frees, 2,444,552 bytes allocated
  482. ==138==
  483. ==138== 204,480 (96 direct, 204,384 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 2
  484. ==138== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
  485. ==138== by 0x109326: insert (student.c:14)
  486. ==138== by 0x109690: main (student.c:153)
  487. ==138==
  488. ==138== LEAK SUMMARY:
  489. ==138== definitely lost: 96 bytes in 1 blocks
  490. ==138== indirectly lost: 204,384 bytes in 2,129 blocks
  491. ==138== possibly lost: 0 bytes in 0 blocks
  492. ==138== still reachable: 0 bytes in 0 blocks
  493. ==138== suppressed: 0 bytes in 0 blocks
  494. ==138==
  495. ==138== For lists of detected and suppressed errors, rerun with: -s
  496. ==138== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
  497.  
  498.  
  499. ** End of Test 8 **
  500. ********************************************************************
  501.  
  502.  
  503. ./run_tests: line 83: 148 Segmentation fault timelimit -p -t "${TIMEOUT}" -T "${TIMEOUT}" ./student.exe < "${INPUT}" > _output.txt 2> _error.txt
  504. ********************************************************************
  505. ** Test Number: 9 **
  506.  
  507.  
  508. *******************************************
  509. ** your program CRASHED... **
  510. *******************************************
  511.  
  512.  
  513. ** End of Test 9 **
  514. ********************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement