Problem shoes
User havinaaaaash
Submission Time 2024-12-05 16:14:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shoes.cpp:4:23: error: expected ‘,’ or ‘...’ before ‘S’
4 | int count_swaps(int[] S){
| ^
shoes.cpp: In function ‘int count_swaps(int*)’:
shoes.cpp:6:11: error: expected ‘;’ before ‘==’ token
6 | for(int i == 0; i<n; i+=2){
| ^~~
| ;
shoes.cpp:6:12: error: expected primary-expression before ‘==’ token
6 | for(int i == 0; i<n; i+=2){
| ^~
shoes.cpp:6:20: error: ‘n’ was not declared in this scope
6 | for(int i == 0; i<n; i+=2){
| ^
shoes.cpp:6:21: error: expected ‘)’ before ‘;’ token
6 | for(int i == 0; i<n; i+=2){
| ~ ^
| )
shoes.cpp:6:23: error: ‘i’ was not declared in this scope
6 | for(int i == 0; i<n; i+=2){
| ^