Borderou de evaluare (job #1514540)

Utilizator deneoAdrian Craciun deneo Data 31 octombrie 2015 12:04:59
Problema Bancomat Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int get_int()’: user.cpp:12:81: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] #define next ++poz; if (poz >= MAXBUFF) {poz = 0; fread(buff, 1, MAXBUFF, stdin);} ^ user.cpp:16:49: note: in expansion of macro ‘next’ while (buff[poz] < '0' || buff[poz] > '9') {next}; ^ user.cpp:12:81: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] #define next ++poz; if (poz >= MAXBUFF) {poz = 0; fread(buff, 1, MAXBUFF, stdin);} ^ user.cpp:21:41: note: in expansion of macro ‘next’ nr = nr * 10 + buff[poz] - '0'; next ^ user.cpp: In function ‘int main()’: user.cpp:43:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bancomat.in", "r", stdin); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
148ms696kbOK10100
248ms696kbOK10
348ms700kbOK10
448ms696kbOK10
548ms692kbOK10
648ms700kbOK10
748ms700kbOK10
848ms692kbOK10
948ms696kbOK10
1048ms692kbOK10
Punctaj total100

Ceva nu functioneaza?