Borderou de evaluare (job #2483726)
| Utilizator | Data | 30 octombrie 2019 10:10:19 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void down(int)':
main.cpp:22:17: error: 'l' was not declared in this scope
if (2*p+1<=l)
^
main.cpp:38:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
down[2*p];
^
main.cpp:38:18: warning: value computed is not used [-Wunused-value]
down[2*p];
~~~~~~~~^
main.cpp:38:18: warning: statement has no effect [-Wunused-value]
main.cpp: In function 'void add(int)':
main.cpp:45:5: error: 'l' was not declared in this scope
l++;
^
main.cpp: In function 'int main()':
main.cpp:55:14: error: 'x' was not declared in this scope
f >> x;
^
main.cpp:58:9: error: 'x' was not declared in this scope
add(x);
^
main.cpp:60:15: error: 'l' was not declared in this scope
for (i=1;i<=l;i++)
^
main.cpp:60:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i=1;i<=l;i++)
^~~
main.cpp:62:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return 0;
^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
