Borderou de evaluare (job #2086203)

Utilizator sipos_davidSipos David Oliver sipos_david Data 11 decembrie 2017 17:28:45
Problema Algoritmul lui Euclid Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:21:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:23:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d", &a, &b); ^ user.cpp:23:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:20:19: warning: unused variable ‘r’ [-Wunused-variable] long n, a, b, r; ^ user.cpp:18:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid2.in", "r", stdin); ^ user.cpp:19:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid2.out", "w", stdout); ^ user.cpp:21:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:23:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms432kbOK1010
20ms432kbOK1020
30ms432kbOK10
428ms428kbOK1010
540ms432kbOK1010
652ms424kbOK1010
768ms432kbOK1040
880ms428kbOK10
988ms428kbOK10
10136ms432kbOK10
Punctaj total100

Ceva nu functioneaza?