Borderou de evaluare (job #1749030)

Utilizator NguyenCuongNguyen Cuong NguyenCuong Data 27 august 2016 18:18:41
Problema Harbingers Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:54: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] #define openfile {freopen("harbingers.in","rt",stdin);freopen("harbingers.out","wt",stdout);} ^ user.cpp:59:12: note: in expansion of macro ‘openfile’ if (HOME) openfile; ^ user.cpp:12:92: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] #define openfile {freopen("harbingers.in","rt",stdin);freopen("harbingers.out","wt",stdout);} ^ user.cpp:59:12: note: in expansion of macro ‘openfile’ if (HOME) openfile; ^ user.cpp:60:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:63:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &u, &v, &w); ^ user.cpp:66:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] FOR(i, 2, n) scanf("%lld%lld", &s[i], &val[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms3204kbIncorect0
28ms3700kbIncorect0
3128ms11112kbIncorect0
4152ms14792kbKilled by signal 11(SIGSEGV).0
5168ms15944kbKilled by signal 11(SIGSEGV).0
6196ms17080kbKilled by signal 11(SIGSEGV).0
7172ms10864kbIncorect0
8336ms14368kbIncorect0
9340ms16888kbOK10
10304ms15512kbIncorect0
Punctaj total10

Ceva nu functioneaza?