Submission #717799

#TimeUsernameProblemLanguageResultExecution timeMemory
717799skyvn97Hexagonal Territory (APIO21_hexagon)C++14
0 / 100
1 ms212 KiB
#include "hexagon.h" #include <bits/stdc++.h> using namespace std; int dfs(int x) { cout << x << endl; dfs(x + 1); return 2 * x; } int draw_territory(int N, int A, int B, std::vector<int> D, std::vector<int> L) { freopen("ahihi.inp", "r", stdin); freopen("ahihi.out", "w", stdout); return 220797; }

Compilation message (stderr)

hexagon.cpp: In function 'int draw_territory(int, int, int, std::vector<int>, std::vector<int>)':
hexagon.cpp:14:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   14 |  freopen("ahihi.inp", "r", stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
hexagon.cpp:15:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   15 |     freopen("ahihi.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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...