Mai intai trebuie sa te autentifici.

Borderou de evaluare (job #2227073)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 31 iulie 2018 09:57:46
Problema Cele mai apropiate puncte din plan Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:1: error: ‘vector’ does not name a type vector <point> V(NMAX); ^~~~~~ user.cpp:10:1: error: ‘vector’ does not name a type vector<point> X,Y; ^~~~~~ user.cpp: In function ‘long long unsigned int getmin(int, int)’: user.cpp:22:12: error: ‘Y’ was not declared in this scope if(Y[dr-1]<Y[st]) ^ user.cpp:24:21: error: ‘Y’ was not declared in this scope return dist(Y[st],Y[dr-1]); ^ user.cpp:28:11: error: ‘Y’ was not declared in this scope merge(Y.begin()+st,Y.begin()+mid,Y.begin()+mid,Y.begin()+dr,V.begin()); ^ user.cpp:28:65: error: ‘V’ was not declared in this scope merge(Y.begin()+st,Y.begin()+mid,Y.begin()+mid,Y.begin()+dr,V.begin()); ^ user.cpp:32:28: error: ‘X’ was not declared in this scope if(abs(Y[i].second-X[mid].first)<=minim) ^ user.cpp: In function ‘int main()’: user.cpp:42:5: error: ‘X’ was not declared in this scope X.resize(N); ^ user.cpp:43:5: error: ‘Y’ was not declared in this scope Y.resize(N); ^ user.cpp:49:40: error: ‘sqrt’ was not declared in this scope double val=sqrt(double(getmin(0,N))); ^ user.cpp:41:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&N); ^

Ceva nu functioneaza?