I am still working on my draughts game and i code a little but when try to compile the first part of the game i get that error:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
In function 'int main()':
25 30 C:\Users\-exper-\Desktop\exercises\dama.cpp [Warning] pointer to a function used in arithmetic [-Wpointer-arith]
25 33 C:\Users\-exper-\Desktop\exercises\dama.cpp [Warning] pointer to a function used in arithmetic [-Wpointer-arith]
25 35 C:\Users\-exper-\Desktop\exercises\dama.cpp [Error] assignment of read-only location '*(tahta + (((sizetype)i) + ((sizetype)j)))'
25 35 C:\Users\-exper-\Desktop\exercises\dama.cpp [Error] cannot convert 'const char [4]' to 'int(std::string (*)[8], std::string) {aka int(std::basic_string<char> (*)[8], std::basic_string<char>)}' in assignment
34 15 C:\Users\-exper-\Desktop\exercises\dama.cpp [Warning] pointer to a function used in arithmetic [-Wpointer-arith]
34 18 C:\Users\-exper-\Desktop\exercises\dama.cpp [Warning] pointer to a function used in arithmetic [-Wpointer-arith]
34 20 C:\Users\-exper-\Desktop\exercises\dama.cpp [Error] assignment of read-only location '*(tahta + (((sizetype)i) + ((sizetype)j)))'
34 20 C:\Users\-exper-\Desktop\exercises\dama.cpp [Error] cannot convert 'const char [4]' to 'int(std::string (*)[8], std::string) {aka int(std::basic_string<char> (*)[8], std::basic_string<char>)}' in assignment
46 32 C:\Users\-exper-\Desktop\exercises\dama.cpp [Warning] pointer to a function used in arithmetic [-Wpointer-arith]
46 37 C:\Users\-exper-\Desktop\exercises\dama.cpp [Warning] pointer to a function used in arithmetic [-Wpointer-arith]
46 39 C:\Users\-exper-\Desktop\exercises\dama.cpp [Error] assignment of read-only location '*(tahta + (((sizetype)i) + ((sizetype)j)))'
46 39 C:\Users\-exper-\Desktop\exercises\dama.cpp [Error] cannot convert 'const char [4]' to 'int(std::string (*)[8], std::string) {aka int(std::basic_string<char> (*)[8], std::basic_string<char>)}' in assignment
55 17 C:\Users\-exper-\Desktop\exercises\dama.cpp [Warning] pointer to a function used in arithmetic [-Wpointer-arith]
55 22 C:\Users\-exper-\Desktop\exercises\dama.cpp [Warning] pointer to a function used in arithmetic [-Wpointer-arith]
55 24 C:\Users\-exper-\Desktop\exercises\dama.cpp [Error] assignment of read-only location '*(tahta + (((sizetype)i) + ((sizetype)j)))'
55 24 C:\Users\-exper-\Desktop\exercises\dama.cpp [Error] cannot convert 'const char [4]' to 'int(std::string (*)[8], std::string) {aka int(std::basic_string<char> (*)[8], std::basic_string<char>)}' in assignment