Borderou de evaluare (job #1483765)
Utilizator | Data | 9 septembrie 2015 21:37:52 | |
---|---|---|---|
Problema | Coduri Huffman | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:81:5: warning: passing argument 2 of ‘dfs’ from incompatible pointer type [enabled by default]
dfs(i, &et, &nr);
^
user.c:7:13: note: expected ‘int *’ but argument is of type ‘long long int *’
inline void dfs(int x, int *et, int *nr){
^
user.c:81:5: warning: passing argument 3 of ‘dfs’ from incompatible pointer type [enabled by default]
dfs(i, &et, &nr);
^
user.c:7:13: note: expected ‘int *’ but argument is of type ‘long long int *’
inline void dfs(int x, int *et, int *nr){
^
user.c:75:7: warning: variable ‘poz’ set but not used [-Wunused-but-set-variable]
int poz;
^
user.c:54:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &n);
^
user.c:56:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%lld", &v[i]);
^
/tmp/ccJDWoA7.o: In function `main':
user.c:(.text.startup+0x61a): undefined reference to `dfs'
collect2: error: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !