Submission #429980

# Submission time Handle Problem Language Result Execution time Memory
429980 2021-06-16T10:49:38 Z MOUF_MAHMALAT Vision Program (IOI19_vision) C++14
0 / 100
1 ms 332 KB
#include "vision.h"
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
vector<ll>v,w;
ll n,m,gg;
ll cal(ll xx,ll yy)
{
    ll id2=(xx*m)+yy;
    w.push_back(id2);
}
void construct_network(int H, int W, int k)
{
    n=H,m=W,gg=n*m;
    for(ll i=0; i<n; i++)
    {
        for(ll j=0; j<m; j++)
        {
            w.clear();
            cal(i,j);
            for(ll o=i; o<n; o++)
                for(ll p=j; p<m; p++)
                {
                   if(abs(i-o)+abs(j-p)!=k)
                    continue;
                   cal(o,p);
                }
            add_and(w);
            v.push_back(gg++);
        }
    }
    add_or(v);
}

Compilation message

vision.cpp: In function 'll cal(ll, ll)':
vision.cpp:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -