Borderou de evaluare (job #1676406)
Utilizator | Data | 5 aprilie 2016 21:46:12 | |
---|---|---|---|
Problema | Diez | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int random()’:
user.cpp:29:12: error: new declaration ‘int random()’
int random()
^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
from /usr/include/c++/4.8/bits/stl_algo.h:59,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:2:
/usr/include/stdlib.h:327:17: error: ambiguates old declaration ‘long int random()’
extern long int random (void) __THROW;
^
user.cpp: In function ‘int main()’:
user.cpp:122:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("diez.in", "r", stdin);
^
user.cpp:123:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("diez.out", "w", stdout);
^
user.cpp:127:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n%s",&n,&m,sir+1);
^
user.cpp:137:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&tip);
^
user.cpp:140:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %c",&poz,&c);
^
user.cpp:145:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&q1,&q2,&lg);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !