holiday.cpp:19:11: error: stray '#' in program
19 | x -= q;#include"holiday.h"
| ^
holiday.cpp: In function 'll findMaxAttraction(int, int, int, int*)':
holiday.cpp:19:12: error: 'include' was not declared in this scope
19 | x -= q;#include"holiday.h"
| ^~~~~~~
In file included from /usr/include/c++/10/utility:68,
from /usr/include/c++/10/algorithm:60,
from holiday.cpp:2:
/usr/include/c++/10/bits/stl_set.h:64:15: error: expected '=' before '__attribute__'
64 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_set.h:64:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/10/set:61,
from holiday.cpp:23:
/usr/include/c++/10/bits/stl_set.h:64:14: error: expected ';' before '__attribute__'
64 | namespace std _GLIBCXX_VISIBILITY(default)
| ^
| ;
/usr/include/c++/10/bits/stl_set.h:65:1: error: expected primary-expression before '{' token
65 | {
| ^
In file included from /usr/include/c++/10/utility:68,
from /usr/include/c++/10/algorithm:60,
from holiday.cpp:2:
/usr/include/c++/10/bits/stl_multiset.h:64:15: error: expected '=' before '__attribute__'
64 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_multiset.h:64:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/10/set:62,
from holiday.cpp:23:
/usr/include/c++/10/bits/stl_multiset.h:64:14: error: expected ';' before '__attribute__'
64 | namespace std _GLIBCXX_VISIBILITY(default)
| ^
| ;
/usr/include/c++/10/bits/stl_multiset.h:65:1: error: expected primary-expression before '{' token
65 | {
| ^
In file included from /usr/include/c++/10/utility:68,
from /usr/include/c++/10/algorithm:60,
from holiday.cpp:2:
/usr/include/c++/10/set:71:15: error: expected '=' before '__attribute__'
71 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/set:71:15: error: expected identifier before '__attribute__'
In file included from holiday.cpp:23:
/usr/include/c++/10/set:71:14: error: expected ';' before '__attribute__'
71 | namespace std _GLIBCXX_VISIBILITY(default)
| ^
| ;
/usr/include/c++/10/set:72:1: error: expected primary-expression before '{' token
72 | {
| ^
holiday.cpp:32:1: error: 'multiset' was not declared in this scope
32 | multiset<ll>st;
| ^~~~~~~~
holiday.cpp:24:1: note: 'std::multiset' is defined in header '<set>'; did you forget to '#include <set>'?
23 | #include<set>
+++ |+#include <set>
24 |
holiday.cpp:32:12: error: expected primary-expression before '>' token
32 | multiset<ll>st;
| ^
holiday.cpp:32:13: error: 'st' was not declared in this scope; did you mean 'std'?
32 | multiset<ll>st;
| ^~
| std
holiday.cpp:34:65: error: a function-definition is not allowed here before '{' token
34 | ll findMaxAttraction(int n, int start, int d, int attraction[]) {
| ^
holiday.cpp:29:11: warning: unused variable 'D' [-Wunused-variable]
29 | const int D = 2*N + N/2;
| ^
holiday.cpp:31:4: warning: unused variable 'sum' [-Wunused-variable]
31 | ll sum = 0;
| ^~~