Submission #28189

#TimeUsernameProblemLanguageResultExecution timeMemory
28189IE (#71)The Ethereum and The Bitcoin (FXCUP2_ethereum)C++98
1 / 1
0 ms1120 KiB
#include "ethereum.h" #include <algorithm> using namespace std; long long det(long long p, long long q, long long r, long long s) { return p * s - q * r; } excinfo GetExchangePrice() { excinfo A = Exchange(100000000); excinfo B = Exchange(99999999); long long p = det(100000000,A.ETH,99999999,B.ETH); long long q = det(A.BTC,100000000,B.BTC,99999999); long long r = det(A.BTC,A.ETH,B.BTC,B.ETH); return {p/r,q/r}; }

Compilation message (stderr)

ethereum.cpp: In function 'excinfo GetExchangePrice()':
ethereum.cpp:18:9: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
  return {p/r,q/r};
         ^
#Verdict Execution timeMemoryGrader output
Fetching results...