Borderou de evaluare (job #1283387)

Utilizator RanKBrinduse Alexandru RanK Data 5 decembrie 2014 17:06:52
Problema Cifre4 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void PushToQueue(INT_QUEUE**, int)’: user.cpp:10:169: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] #define malloc(size) malloc(size); totalSize+=size; maxSize = (maxSize < totalSize ? totalSize : maxSize); if(maxSize > 81920 * 1024) { printf("maxSize = %d!!", maxSize); exit(-1); } ^ user.cpp:25:31: note: in expansion of macro ‘malloc’ (*tail)->next = (INT_QUEUE *)malloc(sizeof(INT_QUEUE)); ^ user.cpp: In function ‘int main()’: user.cpp:10:169: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] #define malloc(size) malloc(size); totalSize+=size; maxSize = (maxSize < totalSize ? totalSize : maxSize); if(maxSize > 81920 * 1024) { printf("maxSize = %d!!", maxSize); exit(-1); } ^ user.cpp:117:21: note: in expansion of macro ‘malloc’ caracArray = (int*)malloc(sizeof(int) * MAX_N); ^ user.cpp:203:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(auxNr % n == goodValue) ^ user.cpp:116:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fIn, "%d", &t); ^ user.cpp:121:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fIn, "%d", &p); ^ user.cpp:122:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fIn, "%d", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12304ms45140kbOK100
Punctaj total100

Ceva nu functioneaza?