Problem swords
User yongteckrice
Submission Time 2023-03-17 10:05:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function β€˜int main()’:
swords.cpp:22:20: error: missing template arguments before β€˜[’ token
22 | long maxdef{vector[0].second()};
| ^
swords.cpp:26:22: error: expression cannot be used as a function
26 | if (vect[i].second() > maxdef)
| ^
swords.cpp:29:28: error: expression cannot be used as a function
29 | maxdef = vect[i].second();
| ^