Borderou de evaluare (job #2030698)
Utilizator | Data | 1 octombrie 2017 23:29:45 | |
---|---|---|---|
Problema | Maxd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:1: error: expected ‘,’ or ‘;’ before ‘ofstream’
ofstream out("maxd.out")
^
user.cpp:21:4: error: overloaded function with no contextual type information
max=0;
^
user.cpp:22:1: error: ‘nr’ was not declared in this scope
nr=0;
^
user.cpp:23:4: error: overloaded function with no contextual type information
min=0;
^
user.cpp:24:5: error: ‘a’ was not declared in this scope
in>>a>>b;
^
user.cpp:24:8: error: ‘b’ was not declared in this scope
in>>a>>b;
^
user.cpp:25:5: error: ‘i’ was not declared in this scope
for(i=a;i<=b;i++)
^
user.cpp:26:2: error: ‘k’ was not declared in this scope
{k=nrdiv(i);
^
user.cpp:31:8: error: ‘o’ was not declared in this scope
nr=o;
^
user.cpp:37:1: error: ‘out’ was not declared in this scope
out<<min<<endl;
^
user.cpp:38:6: error: ‘k’ was not declared in this scope
out<<k<<endl;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !