Borderou de evaluare (job #1756485)

Utilizator Burbon13Burbon13 Burbon13 Data 12 septembrie 2016 22:03:18
Problema Euclid Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp:53:3: warning: "/*" within comment [-Wcomment] /* GCD(0,v) == v; GCD(u,0) == u, GCD(0,0) == 0 ^ user.cpp:57:3: warning: "/*" within comment [-Wcomment] /* Let shift := lg K, where K is the greatest power of 2 ^ user.cpp:67:3: warning: "/*" within comment [-Wcomment] /* From here on, u is always odd. ^ user.cpp:69:8: warning: "/*" within comment [-Wcomment] /* remove all factors of 2 in v -- they are not common ^ user.cpp:70:8: warning: "/*" within comment [-Wcomment] /* note: v is not zero, so while will terminate ^ user.cpp:71:30: warning: "/*" within comment [-Wcomment] while ((v & 1) == 0) /* Loop X ^ user.cpp:74:8: warning: "/*" within comment [-Wcomment] /* Now u and v are both odd. Swap if necessary so u <= v, ^ user.cpp:83: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:130: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:131: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:135: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
24ms572kbOK10
34ms572kbOK10
4304ms5948kbOK10
5300ms5952kbOK10
6304ms5956kbOK10
7Depăşit5948kbTime limit exceeded.0
8Depăşit5948kbTime limit exceeded.0
9Depăşit5948kbTime limit exceeded.0
10Depăşit5944kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?