Borderou de evaluare (job #1892738)

Utilizator Aquaryus0Alexandru Benchea Aquaryus0 Data 25 februarie 2017 11:21:03
Problema Algoritmul lui Euclid extins Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void read(long int&, long int&, long int&, long int)’: user.cpp:31:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &t); ^ user.cpp:34:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d %d", &x, &y, &c); ^ user.cpp:34:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:34:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp: In function ‘long int cmmdc(long int, long int)’: user.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘void read(long int&, long int&, long int&, long int)’: user.cpp:31:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:34:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &x, &y, &c); ^ user.cpp: In function ‘int main()’: user.cpp:49:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid3.in", "r", stdin); ^ user.cpp:50:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid3.out", "w", stdout); ^ user.cpp:52:19: warning: ‘c’ is used uninitialized in this function [-Wuninitialized] read(t,x,y, c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms428kbRaspuns Corect1030
20ms436kbRaspuns Corect10
30ms424kbRaspuns Corect10
40ms424kbRaspuns Corect1010
50ms428kbRaspuns Corect1010
60ms428kbRaspuns Corect1010
70ms424kbRaspuns Corect1010
80ms428kbRaspuns Corect1010
90ms432kbRaspuns Corect1020
100ms424kbRaspuns Corect10
Punctaj total100

Ceva nu functioneaza?