Problem swords
User RandomCtfNoob
Submission Time 2025-02-10 17:37:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function β€˜int main()’:
swords.cpp:13:21: error: expression cannot be used as a function
13 | cin >> data.first();
| ^
swords.cpp:14:22: error: expression cannot be used as a function
14 | cin >> data.second();
| ^
swords.cpp:15:23: error: missing template arguments before β€˜)’ token
15 | sword.push_back(pair);
| ^
swords.cpp:18:34: error: expression cannot be used as a function
18 | int bestattack = sword[0].first();
| ^
swords.cpp:23:22: error: expression cannot be used as a function
23 | if (sword[i].first() <= sword[i+1].first()){
| ^
swords.cpp:23:44: error: expression cannot be used as a function
23 | if (sword[i].first() <= sword[i+1].first()){
| ^
swords.cpp:24:34: error