Borderou de evaluare (job #1477065)
Utilizator | Data | 25 august 2015 15:18:51 | |
---|---|---|---|
Problema | Energii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:9: error: ‘INT_MAX’ was not declared in this scope
int min=INT_MAX,sum,C;
^
user.cpp: In function ‘void bt(int, ob*, ob*)’:
user.cpp:21:4: error: ‘sum’ was not declared in this scope
sum+=sol[k].e;
^
user.cpp:22:4: error: ‘C’ was not declared in this scope
C+=sol[k].c;
^
user.cpp:24:6: error: ‘C’ was not declared in this scope
if(C>=w && min>sum)
^
user.cpp:24:18: error: ‘sum’ was not declared in this scope
if(C>=w && min>sum)
^
user.cpp:26:3: error: ‘sum’ was not declared in this scope
sum=0;
^
user.cpp:27:3: error: ‘C’ was not declared in this scope
C=0;
^
user.cpp: In function ‘int main()’:
user.cpp:54:10: error: ‘INT_MAX’ was not declared in this scope
if(min!=INT_MAX)
^
user.cpp:47:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d %d",&g,&w);
^
user.cpp:52:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d %d",&v[i].c,&v[i].e);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !