v2 / vlib / v / checker / tests / with_check_option / v_tictactoe.out
47 lines · 47 sloc · 2.11 KB · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/with_check_option/v_tictactoe.vv:18:11: notice: unused parameter: `player`
2 16 | }
3 17 |
4 18 | fn prompt(player string) (int, int) {
5 | ~~~~~~
6 19 | return 0, 0
7 20 | }
8vlib/v/checker/tests/with_check_option/v_tictactoe.vv:4:31: error: `len` and `cap` are invalid attributes for fixed array dimension
9 2 |
10 3 | fn new_board() [][]string {
11 4 | mut board := [3][]string{ len: 3, init: []string{ len: 3, init: '' } }
12 | ~~~
13 5 | for i in 0..9 {
14 6 | board[i / 3][i % 3] = (i + 1).str()
15vlib/v/checker/tests/with_check_option/v_tictactoe.vv:4:36: error: expression evaluated but not used
16 2 |
17 3 | fn new_board() [][]string {
18 4 | mut board := [3][]string{ len: 3, init: []string{ len: 3, init: '' } }
19 | ^
20 5 | for i in 0..9 {
21 6 | board[i / 3][i % 3] = (i + 1).str()
22vlib/v/checker/tests/with_check_option/v_tictactoe.vv:4:45: error: expression evaluated but not used
23 2 |
24 3 | fn new_board() [][]string {
25 4 | mut board := [3][]string{ len: 3, init: []string{ len: 3, init: '' } }
26 | ~~~~~~~~~
27 5 | for i in 0..9 {
28 6 | board[i / 3][i % 3] = (i + 1).str()
29vlib/v/checker/tests/with_check_option/v_tictactoe.vv:1:1: error: unknown type
30 1 | module main
31 | ^
32 2 |
33 3 | fn new_board() [][]string {
34vlib/v/checker/tests/with_check_option/v_tictactoe.vv:6:14: error: unknown type for expression `board`
35 4 | mut board := [3][]string{ len: 3, init: []string{ len: 3, init: '' } }
36 5 | for i in 0..9 {
37 6 | board[i / 3][i % 3] = (i + 1).str()
38 | ~~~~~~~
39 7 | }
40 8 | return board
41vlib/v/checker/tests/with_check_option/v_tictactoe.vv:6:21: error: unknown type for expression `board[i / 3]`
42 4 | mut board := [3][]string{ len: 3, init: []string{ len: 3, init: '' } }
43 5 | for i in 0..9 {
44 6 | board[i / 3][i % 3] = (i + 1).str()
45 | ~~~~~~~
46 7 | }
47 8 | return board
48