Borderou de evaluare (job #1756548)
Utilizator | Data | 13 septembrie 2016 00:21:13 | |
---|---|---|---|
Problema | Valentin | 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:12:22: error: ‘INF’ was not declared in this scope
long long s=0,r=-INF,r1=0;
^
user.cpp:35:32: error: ‘r1’ was not declared in this scope
if(nr2>1) {r=maximp1*2;r1=nr2*(nr2-1)/2;}
^
user.cpp:36:43: error: ‘r1’ was not declared in this scope
else if(nr3>0) {r=maximp1+maximp2;r1=nr2*nr3;}
^
user.cpp:37:32: error: ‘r1’ was not declared in this scope
if(maxpar>r) {r=maxpar;r1=nr1;}
^
user.cpp:38:28: error: ‘r1’ was not declared in this scope
else if(maxpar==r) r1=r1+nr1;
^
user.cpp:40:28: error: ‘r1’ was not declared in this scope
else printf("%lld",r1);
^
user.cpp:48:13: error: ‘r1’ was not declared in this scope
r1=1;
^
user.cpp:53:13: error: ‘r1’ was not declared in this scope
r1=nr;
^
user.cpp:58:13: error: ‘r1’ was not declared in this scope
r1=nr;
^
user.cpp:62:28: error: ‘r1’ was not declared in this scope
else printf("%lld",r1*(1<<nrz)-c);
^
user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("valentin.in","r",stdin);
^
user.cpp:10:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("valentin.out","w",stdout);
^
user.cpp:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&p);
^
user.cpp:14:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:17:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !