Borderou de evaluare (job #2551819)
Utilizator | Data | 20 februarie 2020 11:19:35 | |
---|---|---|---|
Problema | Rick | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:11: error: conflicting declaration 'std::ifstream f'
ifstream f("rick.in");
^
main.cpp:7:8: note: previous declaration as 'int f [500005]'
int n, f[nmax], d[nmax], v[nmax], maxx=0, cop, x, cnt, descomp[nmax], sum=0;
^
main.cpp: In function 'int main()':
main.cpp:29:7: error: invalid operands of types 'int [500005]' and 'int' to binary 'operator>>'
f >> n;
~~^~~~
main.cpp:32:11: error: invalid operands of types 'int [500005]' and 'int' to binary 'operator>>'
f >> x;
~~^~~~
main.cpp: In function 'int putere(int, int)':
main.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !