Borderou de evaluare (job #2542756)
Utilizator | Data | 10 februarie 2020 16:06:02 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:1: error: expected ',' or ';' before 'ofstream'
ofstream g("fact.out")
^~~~~~~~
main.cpp: In function 'int solve(int, int)':
main.cpp:20:12: error: 'p' was not declared in this scope
if(rez == p)
^
main.cpp:23:11: error: 'p' was not declared in this scope
if(rez < p)
^
main.cpp:25:2: error: expected ';' before 'else'
else
^~~~
main.cpp: In function 'int main()':
main.cpp:31:7: error: 'p' was not declared in this scope
f >> p;
^
main.cpp:32:2: error: 'g' was not declared in this scope
g << solve(1, 40);
^
main.cpp: In function 'int solve(int, int)':
main.cpp:27: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 !