Submission #436830

#TimeUsernameProblemLanguageResultExecution timeMemory
436830BelguteiVision Program (IOI19_vision)C++17
0 / 100
3 ms968 KiB
#include "vision.h" #include<bits/stdc++.h> using namespace std; #define ll long long #define ff first #define ss second #define pb push_back #define mk make_pair vector<int> v; void construct_network(int H, int W, int K) { freopen("01.in", "r", stdin); freopen("01.out", "w", stdout); v.clear(); for(int i=0; i<H*W; i++){ vector<int> tur; tur.clear(); tur.pb(i); int x=add_not(i); if(x==0){ v.pb(i); } } int a=v[0]%W; int b=v[0]%W; int c=v[1]%W; int d=v[2]%W; if(abs(a-c)+abs(b-d)==K){ add_not(0); } else add_not(1); }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.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("01.in", "r", stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
vision.cpp:15:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   15 |  freopen("01.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...