answer.code:2:7: error: expected nested-name-specifier before ‘namesapce’
2 | using namesapce std;
| ^~~~~~~~~
answer.code:6:4: error: ‘maxn’ was not declared in this scope
6 | }w[maxn];
| ^~~~
answer.code: In function ‘void slove()’:
answer.code:15:33: error: ‘w’ was not declared in this scope
15 | scanf("%d%d%d",&w[i].x1,&w[i].x2,&w[i].y);
| ^
answer.code:17:14: error: ‘w’ was not declared in this scope
17 | sort(w+1,w+n,cmp);
| ^
answer.code:17:9: error: ‘sort’ was not declared in this scope
17 | sort(w+1,w+n,cmp);
| ^~~~
answer.code:17:9: note: suggested alternatives:
In file included from /usr/include/c++/13/algorithm:73,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from answer.code:1:
/usr/include/c++/13/pstl/glue_algorithm_defs.h:296:1: note: ‘std::sort’
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
In file included from /usr/include/c++/13/algorithm:63:
/usr/include/c++/13/bits/ranges_algo.h:1801:30: note: ‘std::ranges::sort’
1801 | inline constexpr __sort_fn sort{};
| ^~~~
answer.code:13:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | scanf("%d%d%d",&n,&m,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~