treasure.cpp:26:42: error: expected identifier before ')' token
26 | void grid(int bx, int by, int ux, int uy,){
| ^
treasure.cpp: In function 'void grid(int, int, int, int, int)':
treasure.cpp:33:33: error: too few arguments to function 'void grid(int, int, int, int, int)'
33 | grid(bx,by,(ux+bx)/2,(uy+by)/2);//top left subgrid
| ^
treasure.cpp:26:6: note: declared here
26 | void grid(int bx, int by, int ux, int uy,){
| ^~~~
treasure.cpp:34:33: error: too few arguments to function 'void grid(int, int, int, int, int)'
34 | grid((ux+bx)/2,by,ux,(uy+by)/2);//top right subgrid
| ^
treasure.cpp:26:6: note: declared here
26 | void grid(int bx, int by, int ux, int uy,){
| ^~~~
treasure.cpp:35:33: error: too few arguments to function 'void grid(int, int, int, int, int)'
35 | grid(bx,(uy+by)/2,(ux+bx)/2,uy);//bottom left subgrid
| ^
treasure.cpp:26:6: note: declared here
26 | void grid(int bx, int by, int ux, int uy,){
| ^~~~
treasure.cpp:36:33: error: too few arguments to function 'void grid(int, int, int, int, int)'
36 | grid((ux+bx)/2,(uy+by)/2,ux,uy);//bottom right subgrid
| ^
treasure.cpp:26:6: note: declared here
26 | void grid(int bx, int by, int ux, int uy,){
| ^~~~
treasure.cpp:38:33: error: too few arguments to function 'void grid(int, int, int, int, int)'
38 | grid(bx,by,(ux+bx)/2,(uy+by)/2);
| ^
treasure.cpp:26:6: note: declared here
26 | void grid(int bx, int by, int ux, int uy,){
| ^~~~
treasure.cpp:39:35: error: too few arguments to function 'void grid(int, int, int, int, int)'
39 | grid((ux+bx)/2+1,by,ux,(uy+by)/2);
| ^
treasure.cpp:26:6: note: declared here
26 | void grid(int bx, int by, int ux, int uy,){
| ^~~~
treasure.cpp:40:35: error: too few arguments to function 'void grid(int, int, int, int, int)'
40 | grid(bx,(uy+by)/2+1,(ux+bx)/2,uy);
| ^
treasure.cpp:26:6: note: declared here
26 | void grid(int bx, int by, int ux, int uy,){
| ^~~~
treasure.cpp:41:37: error: too few arguments to function 'void grid(int, int, int, int, int)'
41 | grid((ux+bx)/2+1,(uy+by)/2+1,ux,uy);
| ^
treasure.cpp:26:6: note: declared here
26 | void grid(int bx, int by, int ux, int uy,){
| ^~~~
treasure.cpp: In function 'void findTreasure(int)':
treasure.cpp:46:14: error: too few arguments to function 'void grid(int, int, int, int, int)'
46 | grid(1,1,N,N);
| ^
treasure.cpp:26:6: note: declared here
26 | void grid(int bx, int by, int ux, int uy,){
| ^~~~
treasure.cpp:48:12: error: 'score' was not declared in this scope
48 | cout << ((score<=pow(N,4)*7/16+pow(N,2))?"YES":"NO") << endl;
| ^~~~~
treasure.cpp:56:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (int i=0;i<spots.size();i++){
| ~^~~~~~~~~~~~~
treasure.cpp: In function 'void setIO(std::string)':
treasure.cpp:20:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | freopen((f+".in").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
treasure.cpp:21:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | freopen((f+".out").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~