Submission #429320

# Submission time Handle Problem Language Result Execution time Memory
429320 2021-06-15T20:39:07 Z Pbezz Vision Program (IOI19_vision) C++14
0 / 100
2 ms 1096 KB
#include "vision.h"
#include <bits/stdc++.h>

using namespace std;

#define ll long long
#define pb push_back
typedef pair<ll,ll>pii;

const ll MAXN = 9500;
const ll INF = 1e9+7;

void construct_network(int H, int W, int K){
vector<int>Ns,fina;
	int d,x,y,a,i,j,cur,cur1;
 
	for(x=0;x<H;x++){
	for(y=0;j<W;j++){
	cur = x*W + y;
	for(i=0;i<=K;i++){
	a=K-i+x;
 
	if(i+y>=W||a>=H)continue;
 
	cur1= a*W + i+y;
 
	Ns = {cur,cur1};
	d = add_and(Ns);
	fina.pb(d);
 
}

	}
}


 
	add_or(fina);
 
 

}

Compilation message

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:18:2: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
   18 |  for(y=0;j<W;j++){
      |  ^~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 1096 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 1096 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 1096 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -