Problem medianontree
User bribritt
Submission Time 2023-12-16 10:42:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

medianontree.cpp: In function ‘int main()’:
medianontree.cpp:25:20: error: ‘n’ was not declared in this scope
25 | for(int i=1,u,v;i<n;i++) {
| ^
medianontree.cpp:30:14: error: conversion from ‘int’ to non-scalar type ‘ii’ {aka ‘std::pair<long long int, long long int>’} requested
30 | ii maxdeg = 0;
| ^
medianontree.cpp:31:17: error: ‘n’ was not declared in this scope
31 | for(int i=1;i<=n;i++) maxdeg=max(maxdeg,{adj[i].size(),i});
| ^
medianontree.cpp:33:39: error: ‘i’ was not declared in this scope
33 | else if(maxdeg.fi == N - 1) subtask4(i.se);
| ^