| Problem | swords |
|---|---|
| User | RandomCtfNoob |
| Submission Time | 2025-02-10 17:37:39 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
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: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: expression cannot be used as a function
24 | bestattack = sword[i+1].first();
| ^
sword