Borderou de evaluare (job #1756487)

Utilizator Burbon13Burbon13 Burbon13 Data 12 septembrie 2016 22:09:39
Problema Euclid Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp:56:3: warning: "/*" within comment [-Wcomment] /* GCD(0,v) == v; GCD(u,0) == u, GCD(0,0) == 0 ^ user.cpp:60:3: warning: "/*" within comment [-Wcomment] /* Let shift := lg K, where K is the greatest power of 2 ^ user.cpp:70:3: warning: "/*" within comment [-Wcomment] /* From here on, u is always odd. ^ user.cpp:72:8: warning: "/*" within comment [-Wcomment] /* remove all factors of 2 in v -- they are not common ^ user.cpp:73:8: warning: "/*" within comment [-Wcomment] /* note: v is not zero, so while will terminate ^ user.cpp:74:30: warning: "/*" within comment [-Wcomment] while ((v & 1) == 0) /* Loop X ^ user.cpp:77:8: warning: "/*" within comment [-Wcomment] /* Now u and v are both odd. Swap if necessary so u <= v, ^ user.cpp:86:3: warning: "/*" within comment [-Wcomment] /* restore common factors of 2 ^ user.cpp: In function ‘void citire()’: user.cpp:18:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &n, &m, &h, &w); ^ user.cpp:21:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &mat[i][j][0]); ^ user.cpp: In function ‘int main()’: user.cpp:133:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid.in", "r", stdin); ^ user.cpp:134:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid.out", "w", stdout); ^ user.cpp:138:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &teste); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms576kbOK10
24ms576kbOK10
34ms572kbOK10
4272ms5952kbOK10
5272ms5952kbOK10
6268ms5952kbOK10
71920ms5952kbOK10
81892ms5952kbOK10
91920ms5952kbOK10
101952ms5956kbOK10
Punctaj total100

Ceva nu functioneaza?