Borderou de evaluare (job #1718740)

Utilizator wilson182Alexandrina Panfil wilson182 Data 18 iunie 2016 22:23:46
Problema Chiftea Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &t); ^ user.cpp:13:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:21:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d \n", ans); ^ user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("chiftea.in", "r", stdin); ^ user.cpp:9:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("chiftea.out", "w", stdout); ^ user.cpp:10:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:13:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
172ms288kbOK10
272ms280kbOK10
372ms284kbOK10
468ms288kbOK10
568ms292kbOK10
672ms288kbOK10
768ms284kbOK10
868ms284kbOK10
972ms288kbOK10
1072ms284kbOK10
Punctaj total100

Ceva nu functioneaza?