cave.cpp:1:17: warning: extra tokens at end of #include directive
1 | #include"cave.h".
| ^
cave.cpp: In function 'int main()':
cave.cpp:20:33: error: 's' was not declared in this scope
20 | s[j]=fix[ans[j]]<<" ";
| ^
cave.cpp:20:49: error: invalid operands of types 'long long int' and 'const char [2]' to binary 'operator<<'
20 | s[j]=fix[ans[j]]<<" ";
| ~~~~~~~~~~~^~~~~
| | |
| | const char [2]
| long long int
cave.cpp:23:33: error: 's' was not declared in this scope
23 | s[j]=0;
| ^
cave.cpp:27:41: error: 's' was not declared in this scope
27 | int last=tryCombination(s);
| ^
cave.cpp:66:39: error: too few arguments to function 'int tryCombination(int*)'
66 | tryCombination()
| ~~~~~~~~~~~~~~^~
In file included from cave.cpp:1:
cave.h:8:5: note: declared here
8 | int tryCombination(int S[]);
| ^~~~~~~~~~~~~~
cave.cpp:78:17: error: 'ans2' was not declared in this scope; did you mean 'ans'?
78 | ans2[i]=fix[ans[i]];
| ^~~~
| ans
cave.cpp:80:16: error: 'ans2' was not declared in this scope; did you mean 'ans'?
80 | answer(ans2,ans);
| ^~~~
| ans