0_0_39627072_11449.cpp: In function 'bool hw(char, int)':
0_0_39627072_11449.cpp:8:13: error: invalid types 'char[int]' for array subscript
8 | if(a[i]!=a[j]){
| ^
0_0_39627072_11449.cpp:8:19: error: invalid types 'char[int]' for array subscript
8 | if(a[i]!=a[j]){
| ^
0_0_39627072_11449.cpp: In function 'int main()':
0_0_39627072_11449.cpp:19:11: error: invalid conversion from 'char*' to 'char' [-fpermissive]
19 | if(hw(a)){
| ^
| |
| char*
0_0_39627072_11449.cpp:19:10: error: too few arguments to function 'bool hw(char, int)'
19 | if(hw(a)){
| ~~^~~
0_0_39627072_11449.cpp:5:6: note: declared here
5 | bool hw(char a,int n){
| ^~
In file included from gcc-13.1.0/x86_64-w64-mingw32/include/crtdefs.h:10,
from gcc-13.1.0/x86_64-w64-mingw32/include/assert.h:15,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cassert:44,
from .\stdc++.h:33:
gcc-13.1.0/x86_64-w64-mingw32/include/sec_api/stdio_s.h: In instantiation of 'char* get_s(char (&)[__size]) [with long long unsigned int __size = 105]':
0_0_39627072_11449.cpp:17:10: required from here
gcc-13.1.0/x86_64-w64-mingw32/include/sec_api/stdio_s.h:572:3: error: no matching function for call to 'get_s(char [105], long long unsigned int)'
572 | __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(char*,get_s,char,_DstBuf)
| ^
gcc-13.1.0/x86_64-w64-mingw32/include/sec_api/stdio_s.h:572:3: note: candidate: 'template<long long unsigned int __size> char* get_s(char (&)[__size])'
572 | __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(char*,get_s,char,_DstBuf)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-13.1.0/x86_64-w64-mingw32/include/sec_api/stdio_s.h:572:3: note: template argument deduction/substitution failed:
gcc-13.1.0/x86_64-w64-mingw32/include/sec_api/stdio_s.h:572:3: note: candidate expects 1 argument, 2 provided
572 | __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(char*,get_s,char,_DstBuf)
| ^
|