Borderou de evaluare (job #2783788)

Utilizator Botnaru_VictorBotnaru Victor Botnaru_Victor Data 15 octombrie 2021 08:37:48
Problema Aria Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:11: error: wrong number of template arguments (1, should be 2) 10 | pair<ld,ld> pt[100001]; | ^ In file included from /usr/include/c++/10/bits/stl_algobase.h:64, from /usr/include/c++/10/bits/char_traits.h:39, from /usr/include/c++/10/ios:40, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/sstream:38, from /usr/include/c++/10/complex:45, from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/bits/stl_pair.h:211:12: note: provided for 'template<class _T1, class _T2> struct std::pair' 211 | struct pair | ^~~~ main.cpp:12:4: error: expected initializer before 'mn' 12 | ld mn=0,s=0; | ^~ main.cpp: In function 'int main()': main.cpp:2:11: error: request for member 'first' in 'pt[i]', which is of non-class type 'int' 2 | #define x first | ^~~~~ main.cpp:17:18: note: in expansion of macro 'x' 17 | f>>pt[i].x>>pt[i].y; | ^ main.cpp:3:11: error: request for member 'second' in 'pt[i]', which is of non-class type 'int' 3 | #define y second | ^~~~~~ main.cpp:17:27: note: in expansion of macro 'y' 17 | f>>pt[i].x>>pt[i].y; | ^ main.cpp:18:9: error: 'mn' was not declared in this scope; did you mean 'n'? 18 | mn=min(mn,pt[i].y); | ^~ | n main.cpp:3:11: error: request for member 'second' in 'pt[i]', which is of non-class type 'int' 3 | #define y second | ^~~~~~ main.cpp:18:25: note: in expansion of macro 'y' 18 | mn=min(mn,pt[i].y); | ^ main.cpp:23:9: error: 's' was not declared in this scope 23 | s+=(double)((pt[i].y-mn+pt[j].y-mn)*(pt[i].x-pt[j].x))/2; | ^ main.cpp:3:11: error: request for member 'second' in 'pt[i]', which is of non-class type 'int' 3 | #define y second | ^~~~~~ main.cpp:23:28: note: in expansion of macro 'y' 23 | s+=(double)((pt[i].y-mn+pt[j].y-mn)*(pt[i].x-pt[j].x))/2; | ^ Non zero exit status: 1

Ceva nu functioneaza?