Borderou de evaluare (job #2680246)

Utilizator retrogradLucian Bicsi retrograd Data 3 decembrie 2020 00:18:15
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:18: error: 'Point' was not declared in this scope tuple<long long, Point, Point> ClosestPair(vector<Point> v) { ^~~~~ main.cpp:5:25: error: 'Point' was not declared in this scope tuple<long long, Point, Point> ClosestPair(vector<Point> v) { ^~~~~ main.cpp:5:30: error: template argument 2 is invalid tuple<long long, Point, Point> ClosestPair(vector<Point> v) { ^ main.cpp:5:30: error: template argument 3 is invalid main.cpp:5:51: error: 'Point' was not declared in this scope tuple<long long, Point, Point> ClosestPair(vector<Point> v) { ^~~~~ main.cpp:5:56: error: template argument 1 is invalid tuple<long long, Point, Point> ClosestPair(vector<Point> v) { ^ main.cpp:5:56: error: template argument 2 is invalid In file included from /usr/include/c++/6/cassert:44:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33, from main.cpp:1: main.cpp: In function 'int ClosestPair(int)': main.cpp:6:17: error: request for member 'size' in 'v', which is of non-class type 'int' assert((int)v.size() > 1); ^ main.cpp:7:10: error: request for member 'begin' in 'v', which is of non-class type 'int' sort(v.begin(), v.end(), [&](Point a, Point b) { ^~~~~ main.cpp:7:21: error: request for member 'end' in 'v', which is of non-class type 'int' sort(v.begin(), v.end(), [&](Point a, Point b) { ^~~ main.cpp:7:32: error: 'Point' has not been declared sort(v.begin(), v.end(), [&](Point a, Point b) { ^~~~~ main.cpp:7:41: error: 'Point' has not been declared sort(v.begin(), v.end(), [&](Point a, Point b) { ^~~~~ main.cpp: In lambda function: main.cpp:8:14: error: request for member 'imag' in 'a', which is of non-class type 'int' return a.imag() < b.imag(); ^~~~ main.cpp:8:25: error: request for member 'imag' in 'b', which is of non-class type 'int' return a.imag() < b.imag(); ^~~~ main.cpp: In function 'int ClosestPair(int)': main.cpp:10:7: error: 'Point' was not declared in this scope set<Point> s; int j = 0; ^~~~~ main.cpp:10:12: error: template argument 1 is invalid set<Point> s; int j = 0; ^ Non zero exit status: 1

Ceva nu functioneaza?