Problem swords
User kkai
Submission Time 2024-02-19 22:25:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:8:16: error: expected ‘;’ before ‘<’ token
8 | for (int i=0,i<n,i++){
| ^
| ;
swords.cpp:8:16: error: expected primary-expression before ‘<’ token
swords.cpp:8:22: error: expected ‘;’ before ‘)’ token
8 | for (int i=0,i<n,i++){
| ^
| ;
swords.cpp:9:41: error: expected ‘;’ before ‘}’ token
9 | cin>>swords[i].first>>swords[i].second
| ^
| ;
10 | }
| ~
swords.cpp:15:16: error: expected ‘;’ before ‘>’ token
15 | for (int i=n,i>0,i--){
| ^
| ;
swords.cpp:15:16: error: expected primary-expression before ‘>’ token
swords.cpp:15:22: error: expected ‘;’ bef