Borderou de evaluare (job #2004700)
Utilizator | Data | 26 iulie 2017 12:29:20 | |
---|---|---|---|
Problema | Hansha | Status | done |
Runda | Algoritmiada 2017 Runda 2 Juniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int dist(int, int, int)’:
user.cpp:10:24: error: ‘v’ was not declared in this scope
return 1 + dist(a, v[k - 1], k - 1) + dist(b - mid, v[k - 1] - mid, k - 1);
^
user.cpp:12:30: error: ‘v’ was not declared in this scope
return 1 + dist(a - mid, v[k - 1] - mid, k - 1) + dist(b, v [k - 1], k - 1);
^
user.cpp: In function ‘int main()’:
user.cpp:29:38: error: expected ‘)’ before ‘;’ token
fprintf(fout, "%d", dist(a, b, k);
^
user.cpp: In function ‘int dist(int, int, int)’:
user.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:23:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &t);
^
user.cpp:25:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &k);
^
user.cpp:27:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &s[i]);
^
user.cpp:28:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &a, &b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !