Pagini recente » Borderou de evaluare (job #615066) | Borderou de evaluare (job #1126472) | Borderou de evaluare (job #295513) | Borderou de evaluare (job #1621978) | Borderou de evaluare (job #1283387)
Borderou de evaluare (job #1283387)
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 |
1 | 2304ms | 45140kb | OK | 100 |
Punctaj total | 100 |