Submission #993744

# Submission time Handle Problem Language Result Execution time Memory
993744 2024-06-06T10:59:52 Z amine_aroua Flight to the Ford (BOI22_communication) C++17
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
//#pragma GCC optimize("O3")
//#pragma GCC optimize("unroll-loops")
using namespace std;
#define int long long
#define pb push_back
#define fore(i , n) for(int i = 0 ; i<n;i++)
#define forr(i , x , y) for(int i = x ; i <= y; i++)
#define forn(i , x , y) for(int i = x ; i >= y; i--)
#define nl '\n'
signed main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    double n;
    cin>>n;
//    string s;
//    cin>>s;
//    long double n = (double)s.size();
    cout<<fixed<<setprecision(5);
    cout<<(floor(n / 2) * floor(n / 2))/2<<nl;
}

Compilation message

/usr/bin/ld: /tmp/ccjo7rXb.o: in function `main':
interface.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccJxBfN8.o:communication.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccjo7rXb.o: in function `_do_encode(int, int)':
interface.cpp:(.text+0x1d9): undefined reference to `encode(int, int)'
/usr/bin/ld: /tmp/ccjo7rXb.o: in function `_do_decode(int)':
interface.cpp:(.text+0x219): undefined reference to `decode(int)'
/usr/bin/ld: /tmp/ccjo7rXb.o: in function `main':
interface.cpp:(.text.startup+0xac): undefined reference to `decode(int)'
/usr/bin/ld: interface.cpp:(.text.startup+0x15c): undefined reference to `encode(int, int)'
collect2: error: ld returned 1 exit status