Borderou de evaluare (job #1027014)
Utilizator | Data | 12 noiembrie 2013 12:54:50 | |
---|---|---|---|
Problema | Elementul majoritar | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:7:11: error: ‘INT_MIN’ was not declared in this scope
int max1=INT_MIN,max2=INT_MIN,i,n,val1,val2,aux,m;
^
user.cpp:10:8: error: ‘n’ was not declared in this scope
fcin>>n;
^
user.cpp:11:2: error: ‘m’ was not declared in this scope
m=n;
^
user.cpp:13:9: error: ‘val1’ was not declared in this scope
max1=0;val1=v[1],w[1]=1;i=2;
^
user.cpp:13:26: error: ‘i’ was not declared in this scope
max1=0;val1=v[1],w[1]=1;i=2;
^
user.cpp:16:14: error: ‘aux’ was not declared in this scope
fcin>>v[i];aux=0;
^
user.cpp:27:19: error: ‘val2’ was not declared in this scope
else if(v[i-1]==val2)
^
user.cpp:29:7: error: ‘max2’ was not declared in this scope
if(max2<0)max2=w[i-1];
^
user.cpp:36:5: error: ‘max2’ was not declared in this scope
max2=max1;
^
user.cpp:41:19: error: ‘max2’ was not declared in this scope
else if(w[i-1]>max2)
^
user.cpp:49:9: error: ‘max2’ was not declared in this scope
max1=0;max2=0;
^
user.cpp:53:12: error: ‘val2’ was not declared in this scope
if(v[i]==val2)max2+=w[i];
^
user.cpp:56:29: error: ‘val2’ was not declared in this scope
else if(max2>=m/2+1)fcout<<val2<<" "<<max2;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !