Borderou de evaluare (job #1506757)
Utilizator | Data | 20 octombrie 2015 22:54:49 | |
---|---|---|---|
Problema | Dragon Ball | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:21:53: error: two or more data types in declaration of ‘add’
void add (int Vector1[], int Vector2[], int Result[])
^
user.cpp: In function ‘void sub(int*, int*, int*)’:
user.cpp:33:37: warning: argument to ‘sizeof’ in ‘void* memcpy(void*, const void*, size_t)’ call is the same pointer type ‘int*’ as the destination; expected ‘int’ or an explicit length [-Wsizeof-pointer-memaccess]
memcpy (Result, Vector1, sizeof (Vector1));
^
user.cpp: In function ‘void div(int*, int, int*)’:
user.cpp:50:58: error: ‘value’ was not declared in this scope
Result[i] = (transp = transp * 10 + Vector[i]) / value;
^
user.cpp: In function ‘void shift(int)’:
user.cpp:78:17: error: ‘auxString1’ was not declared in this scope
memcpy (auxString1, Heap[son].heapString, sizeof (Heap[son].heapString));
^
user.cpp:79:45: error: ‘makeTermValue’ was not declared in this scope
makeTermValue (Heap[son].countNr - 1);
^
user.cpp:80:32: error: ‘termValue’ was not declared in this scope
add (auxString1, termValue , auxString1);
^
user.cpp:80:59: error: ‘add’ was not declared in this scope
add (auxString1, termValue , auxString1);
^
user.cpp:83:17: error: ‘auxString2’ was not declared in this scope
memcpy (auxString2, Heap[father].heapString, sizeof (Heap[father].heapString));
^
user.cpp:90:46: error: ‘swap’ was not declared in this scope
if (ok) swap (Heap[son], Heap[father]);
^
user.cpp: In function ‘void percolate(int)’:
user.cpp:100:15: error: ‘heapSize’ was not declared in this scope
if (son < heapSize)
^
user.cpp:102:17: error: ‘auxString1’ was not declared in this scope
memcpy (auxString1, Heap[son].heapString, sizeof (Heap[son].heapString));
^
user.cpp:103:45: error: ‘makeTermValue’ was not declared in this scope
makeTermValue (Heap[son].countNr - 1);
^
user.cpp:104:32: error: ‘termValue’ was not declared in this scope
add (auxString1, termValue , auxString1);
^
user.cpp:104:59: error: ‘add’ was not declared in this scope
add (auxString1, termValue , auxString1);
^
user.cpp:107:17: error: ‘auxString2’ was not declared in this scope
memcpy (auxString2, Heap[son+1].heapString, sizeof (Heap[father].heapString));
^
user.cpp:112:14: error: ‘ok’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !