Borderou de evaluare (job #2569084)
Utilizator | Data | 4 martie 2020 11:01:39 | |
---|---|---|---|
Problema | Maxim3 | 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:15:17: error: expected ')' before ';' token
sort(v+1;v+n+1);
^
main.cpp:15:20: error: 'n' was not declared in this scope
sort(v+1;v+n+1);
^
main.cpp:22:12: error: 'c' was not declared in this scope
if(c==2)
^
main.cpp:24:9: error: 'start' was not declared in this scope
start=1;
^~~~~
main.cpp:26:21: error: 'n' was not declared in this scope
for (i=1;i<=n;i++)
^
main.cpp:29:19: error: 'm' was not declared in this scope
if(i<=m)
^
main.cpp:31:21: error: 'ap' was not declared in this scope
ap[v[i]]++; // creez primul maxim
^~
main.cpp:32:21: error: 'ap1' was not declared in this scope
ap1[v[i]]++;
^~~
main.cpp:36:9: error: 'poz' was not declared in this scope
poz=1;
^~~
main.cpp:38:14: error: 'sf' was not declared in this scope
for (sf=m+1; sf<=n; sf++)
^~
main.cpp:38:17: error: 'm' was not declared in this scope
for (sf=m+1; sf<=n; sf++)
^
main.cpp:38:26: error: 'n' was not declared in this scope
for (sf=m+1; sf<=n; sf++)
^
main.cpp:40:17: error: 'ap1' was not declared in this scope
ap1[v[poz]]--;
^~~
main.cpp:44:17: error: 'q' was not declared in this scope
q=1; // presupun ca toate cifrele atunci cand le compar sunt egale
^
main.cpp:45:21: error: 'j' was not declared in this scope
for(j=9;j>=0;j--)
^
main.cpp:46:24: error: 'ap' was not declared in this scope
if(ap[j]>ap1[j])
^~
main.cpp:56:34: error: 'k' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !