Borderou de evaluare (job #1494981)

Utilizator mariakKapros Maria mariak Data 2 octombrie 2015 10:16:46
Problema Branza Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:22:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d", &v[i].p, &v[i].c); ^ user.cpp:22:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp: In function ‘void write()’: user.cpp:40:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", sol); ^ user.cpp: In function ‘void read()’: user.cpp:17:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("branza.in", "r", stdin); ^ user.cpp:18:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("branza.out", "w", stdout); ^ user.cpp:19:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &n, &s, &t); ^ user.cpp:22:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &v[i].p, &v[i].c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms268kbOK100
20ms272kbOK10
30ms332kbIncorect0
436ms1056kbIncorect00
568ms1532kbIncorect0
680ms1692kbIncorect0
784ms1828kbIncorect00
880ms1832kbIncorect00
984ms1824kbIncorect00
1080ms1828kbIncorect00
Punctaj total0

Ceva nu functioneaza?