Borderou de evaluare (job #2829122)
Utilizator | Data | 8 ianuarie 2022 12:20:02 | |
---|---|---|---|
Problema | Difprim | 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:33:1: error: expected '(' before 'or' token
33 | or(int i=a; i<=b; ++i)
| ^~
| (
main.cpp:33:13: error: 'i' was not declared in this scope
33 | or(int i=a; i<=b; ++i)
| ^
main.cpp:45:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
45 | else
| ^~~~
main.cpp:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
46 | fout<<max_prim<<' '<<max_prim + maxi<<'\n';
|
main.cpp:21:15: warning: unused variable 'prim_precedent' [-Wunused-variable]
21 | int a, b, prim_precedent = 0, maxi=-1, max_prim = 0;
| ^~~~~~~~~~~~~~
main.cpp:46:51: error: expected '}' at end of input
46 | fout<<max_prim<<' '<<max_prim + maxi<<'\n';
| ^
main.cpp:20:1: note: to match this '{'
20 | {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !