Borderou de evaluare (job #2342469)
Utilizator | Data | 12 februarie 2019 20:46:27 | |
---|---|---|---|
Problema | Ecuatii 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int numar(char*, int, int)':
main.cpp:12:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(st==dr)
^
main.cpp: In function 'void calcul(char*, int, int, int&, int&)':
main.cpp:36:9: error: expected '}' before 'else'
else if(N[dr-1]=='+')
^~~~
main.cpp:56:30: warning: for increment expression has no effect [-Wunused-value]
for(int i=st;;i<dr;i++)
~^~~
main.cpp:56:33: error: expected ')' before ';' token
for(int i=st;;i<dr;i++)
^
main.cpp:56:15: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=st;;i<dr;i++)
^~~
main.cpp:56:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=st;;i<dr;i++)
^
main.cpp:56:34: error: 'i' was not declared in this scope
main.cpp: At global scope:
main.cpp:61:5: error: expected unqualified-id before 'else'
else
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !