Problem | typo |
---|---|
User | SharpnessChipped |
Submission Time | 2023-06-06 12:55:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typo.cpp:3:13: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
3 | string swap(n, str) {
| ^
| yn
typo.cpp:3:16: error: ‘str’ was not declared in this scope; did you mean ‘std’?
3 | string swap(n, str) {
| ^~~
| std
typo.cpp:3:21: error: expected ‘,’ or ‘;’ before ‘{’ token
3 | string swap(n, str) {
| ^
typo.cpp: In function ‘int main()’:
typo.cpp:26:7: error: reference to ‘swap’ is ambiguous
26 | if (swap(j, S) == T) {
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from typo.cpp:1:
/usr/include/c++/9/variant:1206:5: note: candidates are: ‘template<class ... _Types> std::enable_if_t<(!((is_move_constructible_v<_Types> && ...) && (is_swappable_v<_Types> && ...)))> std::swap(std::variant<_Types ...>&, std::vari