Submission #331044

#TimeUsernameProblemLanguageResultExecution timeMemory
331044shihan04Arranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
long long count_swap(int S[]){ return sizeof(S)/(sizeof(int)*2); }

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swap(int*)':
shoes.cpp:2:18: warning: 'sizeof' on array function parameter 'S' will return size of 'int*' [-Wsizeof-array-argument]
    2 |   return sizeof(S)/(sizeof(int)*2);
      |                  ^
shoes.cpp:1:26: note: declared here
    1 | long long count_swap(int S[]){
      |                      ~~~~^~~
/tmp/cc6mhPqI.o: In function `main':
grader.cpp:(.text.startup+0x278): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status