Borderou de evaluare (job #1944126)
Utilizator | Data | 28 martie 2017 22:44:35 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int found(std::vector<int>*, int)’:
user.cpp:40:16: error: request for member ‘at’ in ‘t’, which is of pointer type ‘std::vector<int>*’ (maybe you meant to use ‘->’ ?)
while (x != t.at(x))
^
user.cpp: In function ‘void initialize(std::vector<int>*, std::vector<int>*)’:
user.cpp:52:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < t->size(); i++)
^
user.cpp: In function ‘int main()’:
user.cpp:62:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("disjoint.in", "r", stdin);
^
user.cpp:63:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("disjoint.out", "w", stdout);
^
user.cpp:65:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
user.cpp:74:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &type, &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !