# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1173485 | Ciprian | Arranging Shoes (IOI19_shoes) | C++20 | 0 ms | 0 KiB |
int count_swaps(int[] S){
if(sizeof(S)==2){
if(S[0]<0)return 0;
else return 1;
}
}
# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1173485 | 2025-03-25 10:08:09 | Ciprian | Arranging Shoes (IOI19_shoes) | C++20 | Compilation error | 0 ms | 0 KiB |
shoes.cpp:1:23: error: expected ',' or '...' before 'S' 1 | int count_swaps(int[] S){ | ^ shoes.cpp: In function 'int count_swaps(int*)': shoes.cpp:2:15: error: 'S' was not declared in this scope 2 | if(sizeof(S)==2){ | ^ shoes.cpp:6:1: warning: control reaches end of non-void function [-Wreturn-type] 6 | } | ^