Submission #886669

#TimeUsernameProblemLanguageResultExecution timeMemory
886669vjudge1Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <bits/stdc++.h> using namespace std; #define int long long #define ff first #define ss second int count_swaps(vector<int> a) { int n = a.size(); if (a[0] > 0) return 1LL; return 0LL; }

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<long long int>)':
shoes.cpp:18:9: warning: unused variable 'n' [-Wunused-variable]
   18 |     int n = a.size();
      |         ^
/usr/bin/ld: /tmp/ccenBSIS.o: in function `main':
grader.cpp:(.text.startup+0x2a8): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status