Submission #302266

# Submission time Handle Problem Language Result Execution time Memory
302266 2020-09-18T14:58:47 Z EJOI2019Andrew Connecting Supertrees (IOI20_supertrees) C++14
0 / 100
1 ms 384 KB
#include "supertrees.h"
#include <vector>
#include<bits/stdc++.h>
using namespace std;
int construct(std::vector<std::vector<int>> p) {
	vector<vector<int>> answer;
	answer.assign(p.size()+1,vector<int>());
	for(int i=0; i<p.size(); ++i)
    {
    for(int j=0; j<p.size(); ++j)
    answer[i][j]=0;
    }
    for(int i=0; i<p.size()-1; ++i)
    answer[i][i+1]=1;
	build(answer);
	return 1;
}

Compilation message

supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:8:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |  for(int i=0; i<p.size(); ++i)
      |               ~^~~~~~~~~
supertrees.cpp:10:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |     for(int j=0; j<p.size(); ++j)
      |                  ~^~~~~~~~~
supertrees.cpp:13:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |     for(int i=0; i<p.size()-1; ++i)
      |                  ~^~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -