Borderou de evaluare (job #2425453)
Utilizator | Data | 24 mai 2019 20:27:58 | |
---|---|---|---|
Problema | Sirag | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:16:10: error: 'n' was not declared in this scope
fin >> n;
^
main.cpp:18:12: error: 'v' was not declared in this scope
fin >> v[i];
^
main.cpp:19:5: error: 'f' was not declared in this scope
f[v[i]]++;
^
main.cpp:21:8: error: 'i' was not declared in this scope
for (i = 1; i <= n; i++)
^
main.cpp:22:10: error: 'j' was not declared in this scope
for (j = i + 1; j <= n; j++) {
^
main.cpp:23:12: error: 'v' was not declared in this scope
if ((v[i] + v[j]) % 2 == 1)
^
main.cpp:25:11: error: 'v' was not declared in this scope
if (v[i] == v[j]) {
^
main.cpp:26:9: error: 'ans' was not declared in this scope
ans += f[v[i]] - 2;
^~~
main.cpp:26:16: error: 'f' was not declared in this scope
ans += f[v[i]] - 2;
^
main.cpp:29:9: error: 'ans' was not declared in this scope
ans += f[(v[i] + v[j]) / 2];
^~~
main.cpp:29:16: error: 'f' was not declared in this scope
ans += f[(v[i] + v[j]) / 2];
^
main.cpp:32:11: error: 'ans' was not declared in this scope
fout << ans;
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !