Borderou de evaluare (job #1268374)
| Utilizator | Data | 20 noiembrie 2014 21:32:47 | |
|---|---|---|---|
| Problema | Subsir crescator maximal | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:1:1: error: stray ‘##’ in program
##include <stdio.h>
^
user.cpp:1:3: error: ‘include’ does not name a type
##include <stdio.h>
^
user.cpp: In function ‘void afis(int)’:
user.cpp:6:8: error: ‘p’ was not declared in this scope
if (p[i] > 0) afis(p[i]);
^
user.cpp:7:17: error: ‘v’ was not declared in this scope
printf("%d ",v[i]);
^
user.cpp:7:21: error: ‘printf’ was not declared in this scope
printf("%d ",v[i]);
^
user.cpp: In function ‘int caut(int)’:
user.cpp:13:15: error: ‘nr’ was not declared in this scope
p = 0; u = nr; m = (p+u)/2;
^
user.cpp:16:11: error: ‘v’ was not declared in this scope
if (v[L[m]] < x && v[L[m+1]] >= x) return m;
^
user.cpp:16:13: error: ‘L’ was not declared in this scope
if (v[L[m]] < x && v[L[m+1]] >= x) return m;
^
user.cpp: In function ‘int main()’:
user.cpp:25:27: error: ‘stdin’ was not declared in this scope
freopen("scmax.in","r",stdin);
^
user.cpp:25:32: error: ‘freopen’ was not declared in this scope
freopen("scmax.in","r",stdin);
^
user.cpp:26:28: error: ‘stdout’ was not declared in this scope
freopen("scmax.out","w",stdout);
^
user.cpp:28:4: error: ‘nr’ was not declared in this scope
nr = 1;
^
user.cpp:30:16: error: ‘n’ was not declared in this scope
scanf("%d",&n);
^
user.cpp:30:17: error: ‘scanf’ was not declared in this scope
scanf("%d",&n);
^
user.cpp:31:41: error: ‘v’ was not declared in this scope
for (i = 1; i <= n; i++) scanf("%d", v + i);
^
user.cpp:32:4: error: ‘best’ was not declared in this scope
best[1] = L[1] = 1; L[0] = 0;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
