Borderou de evaluare (job #1659815)
Utilizator | Data | 22 martie 2016 17:22:34 | |
---|---|---|---|
Problema | Drumuri4 | 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:9:19: error: new declaration ‘int random()’
inline int random() {
^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:47,
from user.cpp:1:
/usr/include/stdlib.h:327:17: error: ambiguates old declaration ‘long int random()’
extern long int random (void) __THROW;
^
user.cpp: In function ‘std::vector<int> ChainEnds(Treap*)’:
user.cpp:197:9: warning: unused variable ‘pos’ [-Wunused-variable]
int pos = GetPos(node);
^
user.cpp: In function ‘int main()’:
user.cpp:213:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j;
^
user.cpp:215:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &M);
^
user.cpp:225:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &op);
^
user.cpp:227:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
user.cpp:234:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
user.cpp:241:28: 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 !