Problem swords
User wahjsodhowasd
Submission Time 2026-02-13 11:44:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:15:27: error: expected primary-expression before ‘>’ token
15 | if (pingrei[i].second=>pingrei[k]){
| ^
swords.cpp:19:6: error: no match for ‘operator<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
19 | cout< Ans;
| ~~~~^ ~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
swords.cpp:19:6: note: candidate: ‘operator<(int, int)’ <built-in>
19 | cout< Ans;
| ~~~~^~~~~
swords.cpp:19:6: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from swords.cpp:1:
/usr/include/c++/9/bits/regex.h:1048:5: note: candidate: ‘template&l