Borderou de evaluare (job #2379105)
Utilizator | Data | 12 martie 2019 21:33:36 | |
---|---|---|---|
Problema | Turnuri4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: expected ',' or ';' before 'int'
int n,v[100009],s=0;
^~~
main.cpp: In function 'void citire()':
main.cpp:13:8: error: 'n' was not declared in this scope
f>>n;
^
main.cpp:15:12: error: 'v' was not declared in this scope
f>>v[i];
^
main.cpp: In function 'int calcul(int)':
main.cpp:23:12: error: 'v' was not declared in this scope
while (v[i]<v[x] && i>=1)
^
main.cpp:29:12: error: 'v' was not declared in this scope
while (v[i]<v[x]&& i<=n)
^
main.cpp:29:27: error: 'n' was not declared in this scope
while (v[i]<v[x]&& i<=n)
^
main.cpp: In function 'int main()':
main.cpp:41:22: error: 'n' was not declared in this scope
for (int i=1;i<=n;i++)
^
main.cpp:43:16: error: 'v' was not declared in this scope
int x=v[i];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !