Borderou de evaluare (job #1435233)

Utilizator pincucatalinPincu Catalin pincucatalin Data 12 mai 2015 16:16:24
Problema Desen Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void calculare(int)’: user.cpp:16:15: error: invalid types ‘float[int]’ for array subscript d[i][k]=d[k][i]=(v[i].x-v[k].x)*(v[i].x-v[k].x) + (v[i].y-v[k].y)*(v[i].y-v[k].y); ^ user.cpp:16:23: error: invalid types ‘float[int]’ for array subscript d[i][k]=d[k][i]=(v[i].x-v[k].x)*(v[i].x-v[k].x) + (v[i].y-v[k].y)*(v[i].y-v[k].y); ^ user.cpp: In function ‘void rezolvare(int)’: user.cpp:22:21: error: ‘cmp’ was not declared in this scope sort (v+1,v+1+p,cmp); ^ user.cpp:22:24: error: ‘sort’ was not declared in this scope sort (v+1,v+1+p,cmp); ^ user.cpp:26:27: error: ‘struct leg’ has no member named ‘x1’ if (!gasire (v[i].x1,v[i].x2)) ^ user.cpp:26:35: error: ‘struct leg’ has no member named ‘x2’ if (!gasire (v[i].x1,v[i].x2)) ^ user.cpp:26:37: error: ‘gasire’ was not declared in this scope if (!gasire (v[i].x1,v[i].x2)) ^ user.cpp:28:21: error: ‘struct leg’ has no member named ‘lung’ s+=v[i].lung; ^ user.cpp:29:25: error: ‘struct leg’ has no member named ‘x1’ unire (v[i].x1,v[i].x2); ^ user.cpp:29:33: error: ‘struct leg’ has no member named ‘x2’ unire (v[i].x1,v[i].x2); ^ user.cpp:29:35: error: ‘unire’ was not declared in this scope unire (v[i].x1,v[i].x2); ^ user.cpp:30:13: error: ‘corect’ was not declared in this scope corect[++k]=i; ^ user.cpp: In function ‘int main()’: user.cpp:50:5: error: ‘cout’ was not declared in this scope cout << "Hello world!" << endl; ^ user.cpp:50:31: error: ‘endl’ was not declared in this scope cout << "Hello world!" << endl; ^ user.cpp: In function ‘void citire()’: user.cpp:36:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (in,"%d",&n); ^ user.cpp:40:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?