Submission #987790

#TimeUsernameProblemLanguageResultExecution timeMemory
987790DalvinTBank (IZhO14_bank)C++17
0 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define task "task" #define FOR(i, a, b) for(int i = a; i <= b; ++i) #define FORD(i, b, a) for(int i = b; i >= a; --i) #define REP(i, n) for(int i = 0; i < n; ++i) #define ll long long #define pii pair<int, int> #define pll pair<long long, long long> #define vi vector<int> #define vll vector<long long> #define all(x) x.begin(), x.end() #define pb push_back #define eb emplace_back #define fi first #define se second #define BIT(x, i) ((x) >> (i) & 1) const ll N = 20; ll n, m; ll a[N], b[N]; pll dp[1 << N]; //? {most number of people from left, the money remain} void solve(int testcase) { cout << "NO"; return; } int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); if(task == "txtfile") { freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); } else if(task != "task") { freopen(task".INP", "r", stdin); freopen(task".OUT", "w", stdout); } int tc = 1; // cin >> tc; for(ll i = 1; i <= tc; ++i) solve(i); return 0; } /*EXPLANATION*/

Compilation message (stderr)

bank.cpp: In function 'int main()':
bank.cpp:36:13: warning: comparison with string literal results in unspecified behavior [-Waddress]
   36 |     if(task == "txtfile") {
      |             ^
bank.cpp:39:20: warning: comparison with string literal results in unspecified behavior [-Waddress]
   39 |     } else if(task != "task") {
      |                    ^
bank.cpp:37:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   37 |         freopen("input.txt", "r", stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
bank.cpp:38:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   38 |         freopen("output.txt", "w", stdout);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
bank.cpp:40:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   40 |         freopen(task".INP", "r", stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bank.cpp:41:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   41 |         freopen(task".OUT", "w", stdout);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...