Borderou de evaluare (job #1727134)
Utilizator | Data | 9 iulie 2016 21:42:20 | |
---|---|---|---|
Problema | Pic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:1: error: expected initializer before ‘int’
int n, lg, suma;
^
user.cpp: In function ‘void Citire()’:
user.cpp:15:12: error: ‘opt’ was not declared in this scope
fin >> opt;
^
user.cpp:16:12: error: ‘n’ was not declared in this scope
fin >> n;
^
user.cpp:17:5: error: ‘lg’ was not declared in this scope
lg=n*(n+1)/2;
^
user.cpp:21:9: error: ‘suma’ was not declared in this scope
suma+=a[i];
^
user.cpp: In function ‘void Opt1()’:
user.cpp:31:17: error: ‘lg’ was not declared in this scope
for(i=1; i<=lg; i++)
^
user.cpp: In function ‘int Parcurgere(int)’:
user.cpp:57:17: error: ‘n’ was not declared in this scope
for(i=1; i<=n-1; i++)
^
user.cpp:70:19: error: ‘lg’ was not declared in this scope
for(i=poz; i<=lg; i++)
^
user.cpp: In function ‘void CautBin()’:
user.cpp:80:18: error: ‘n’ was not declared in this scope
dr=25*pow(2, n+1);
^
user.cpp:94:39: error: ‘suma’ was not declared in this scope
fout << pozitie << " " << pozitie-suma << "\n";
^
user.cpp: In function ‘int main()’:
user.cpp:102:8: error: ‘opt’ was not declared in this scope
if(opt==1)Opt1();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !