Borderou de evaluare (job #1129130)
Utilizator | Huhurez Marius alevasluiale | Data | 27 februarie 2014 20:21:39 |
---|---|---|---|
Problema | Numere8 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:1: error: ‘ifstream’ does not name a type
ifstream f("numere8.in");
^
user.cpp:8:1: error: ‘ofstream’ does not name a type
ofstream g("numere8.out");
^
user.cpp: In function ‘void citire()’:
user.cpp:13:25: error: ‘f’ was not declared in this scope
for (i=1; i<=10; i++) f>>a[i];
^
user.cpp:14:3: error: ‘f’ was not declared in this scope
f.close();
^
user.cpp: In function ‘void rezolva()’:
user.cpp:20:20: warning: unused variable ‘x’ [-Wunused-variable]
int i, ii, j, k, x, gasit, si, sj, jj, disjuncti;
^
user.cpp:20:23: warning: unused variable ‘gasit’ [-Wunused-variable]
int i, ii, j, k, x, gasit, si, sj, jj, disjuncti;
^
user.cpp:21:7: warning: unused variable ‘cati1’ [-Wunused-variable]
int cati1;
^
user.cpp: In function ‘void afisare()’:
user.cpp:67:3: error: ‘g’ was not declared in this scope
g<<solutii<<" "<<Smax<<endl;
^
user.cpp:67:26: error: ‘endl’ was not declared in this scope
g<<solutii<<" "<<Smax<<endl;
^
user.cpp:67:26: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/istream:39:0,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
user.cpp: At global scope:
user.cpp:77:11: error: ‘::main’ must return ‘int’
void main()
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !