Submission #993744

#TimeUsernameProblemLanguageResultExecution timeMemory
993744amine_arouaFlight to the Ford (BOI22_communication)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

/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