Borderou de evaluare (job #1981430)
Utilizator | Data | 15 mai 2017 18:32:55 | |
---|---|---|---|
Problema | Trapez | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:46:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<pct.size();++i)
^
user.cpp:47:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=i+1;j<pct.size();++j)
^
user.cpp:50:5: error: ‘m’ was not declared in this scope
m = v[0];
^
user.cpp:51:5: error: ‘fss’ was not declared in this scope
fss = 1;
^
user.cpp:52:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 1;i < v.size();i++)
^
user.cpp:36:13: warning: unused variable ‘f’ [-Wunused-variable]
int x,y,f,s=0,n,i,j;
^
user.cpp:34:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trapez.in","r",stdin);
^
user.cpp:35:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trapez.out","w",stdout);
^
user.cpp:38:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:41:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !