Pagini recente » Cod sursa (job #2266527) | Cod sursa (job #1073113) | Cod sursa (job #446164) | Cod sursa (job #1064150) | Borderou de evaluare (job #2377526)
Borderou de evaluare (job #2377526)
Raport evaluator
Compilare:
main.c: In function 'PushBack':
main.c:45:37: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
struct Queue* newElement = (Queue*)malloc(sizeof(Queue));
^~~~~~
main.c:45:37: warning: incompatible implicit declaration of built-in function 'malloc'
main.c:45:37: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c: In function 'PopFront':
main.c:56:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
free(firstElement);
^~~~
main.c:56:2: warning: incompatible implicit declaration of built-in function 'free'
main.c:56:2: note: include '<stdlib.h>' or provide a declaration of 'free'
main.c: In function 'Lee':
main.c:64:25: warning: incompatible implicit declaration of built-in function 'malloc'
firstElement = (Queue*)malloc(sizeof(Queue));
^~~~~~
main.c:64:25: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c: In function 'main':
main.c:116:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", &n, &m);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:121:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", &line, &column);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:125:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d %d %d", &line1, &column1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&line2, &column2);
~~~~~~~~~~~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 10 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 2ms | 131kb | OK | 10 |
| 4 | 3ms | 131kb | OK | 10 |
| 5 | 3ms | 131kb | OK | 10 |
| 6 | 7ms | 262kb | OK | 10 |
| 7 | 11ms | 262kb | OK | 10 |
| 8 | 6ms | 262kb | OK | 10 |
| 9 | 5ms | 262kb | OK | 10 |
| 10 | 3ms | 131kb | OK | 10 |
| Punctaj total | 100 |