Pagini recente » Borderou de evaluare (job #2021210) | Borderou de evaluare (job #2694620) | Borderou de evaluare (job #556690) | Borderou de evaluare (job #2023842)
Borderou de evaluare (job #2023842)
Raport evaluator
Compilare:
user.cpp: In function ‘void grafbuilder()’:
user.cpp:83: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:115: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:116: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 |
1 | 0ms | 484kb | raspuns gresit | 0 | 0 |
2 | 0ms | 480kb | raspuns gresit | 0 |
3 | 720ms | 484kb | raspuns gresit | 0 |
4 | 288ms | 488kb | raspuns gresit | 0 |
5 | 52ms | 488kb | raspuns gresit | 0 |
6 | 56ms | 484kb | raspuns gresit | 0 |
7 | 52ms | 488kb | raspuns gresit | 0 |
8 | 56ms | 480kb | raspuns gresit | 0 |
9 | 56ms | 488kb | raspuns gresit | 0 |
10 | 52ms | 484kb | raspuns gresit | 0 |
Punctaj total | 0 |