Submission #673110

#TimeUsernameProblemLanguageResultExecution timeMemory
673110tbzardVision Program (IOI19_vision)C++14
0 / 100
383 ms272 KiB
#include <bits/stdc++.h> using namespace std; int add_not(int n); int add_and(vector<int> ns); int add_or(vector<int> ns); int add_xor(vector<int> ns); void construct_network(int h, int w, int k){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ for(int a=i+1;a<h;a++){ for(int b=j+1;b<w;b++){ if(abs(i-a) + abs(j-b) == k){ int out = add_and(vector<int>{i*w+j, a*w+b}); } } } } } add_xor(vector<int>{}); add_or(vector<int>{}); add_not(0); }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:14:29: warning: unused variable 'out' [-Wunused-variable]
   14 |                         int out = add_and(vector<int>{i*w+j, a*w+b});
      |                             ^~~
#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...