Problem | swords |
---|---|
User | Argon160 |
Submission Time | 2024-01-29 15:49:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:11:6: error: expected ‘(’ before ‘int’
11 | for int (i=0; i++; i<2*n){
| ^~~
| (
swords.cpp:11:11: error: ‘i’ was not declared in this scope
11 | for int (i=0; i++; i<2*n){
| ^
swords.cpp:18:6: error: expected ‘(’ before ‘int’
18 | for int (i=0;i<n;i++){ //goes through each sword
| ^~~
| (
swords.cpp:18:11: error: ‘i’ was not declared in this scope
18 | for int (i=0;i<n;i++){ //goes through each sword
| ^
swords.cpp:20:61: error: ‘sworddarr’ was not declared in this scope; did you mean ‘swordarr’?
20 | if (usefulswords[j*2]<swordarr[i*2] && usefulswords[j*2]<sworddarr[i*2+1]{
| ^~~~~~~~~
| swordarr
swords.cpp:20:77: error: expected ‘)’ be