Borderou de evaluare (job #2023839)

Utilizator VladG26Ene Vlad-Mihai VladG26 Data 19 septembrie 2017 15:58:46
Problema Tramvai Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void grafbuilder()’: user.cpp:85:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int it=1; it<vDrepte[i].puncte.size()-1; it++) ^ user.cpp: In function ‘void citire()’: user.cpp:26:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:29:86: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&vDrepte[i].x1,&vDrepte[i].y1,&vDrepte[i].x2,&vDrepte[i].y2); ^ user.cpp:31:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&ls1,&ls2,&lf1,&lf2); ^ user.cpp: In function ‘int main()’: user.cpp:119:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tramvai.in","r",stdin); ^ user.cpp:120:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tramvai.out","w",stdout); ^ user.cpp: In function ‘std::pair<double, double> intersectie(dreapta, dreapta)’: user.cpp:54:31: warning: ‘m2’ may be used uninitialized in this function [-Wmaybe-uninitialized] double y=d2.y1-m2*d2.x1+m2*x; ^ user.cpp:53:49: warning: ‘m1’ may be used uninitialized in this function [-Wmaybe-uninitialized] double x=(d2.y1-d1.y1+m1*d1.x1-m2*d2.x1)/(m1-m2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms492kbraspuns gresit00
20ms484kbraspuns gresit0
3720ms488kbraspuns gresit0
4288ms492kbraspuns gresit0
552ms488kbraspuns gresit0
656ms488kbraspuns gresit0
752ms484kbraspuns gresit0
856ms488kbraspuns gresit0
956ms488kbraspuns gresit0
1052ms492kbraspuns gresit0
Punctaj total0

Ceva nu functioneaza?