Borderou de evaluare (job #1910363)
Utilizator | Data | 7 martie 2017 16:36:02 | |
---|---|---|---|
Problema | Biperm | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Read()’:
user.cpp:24:22: error: ‘class std::vector<per>’ has no member named ‘x’
scanf("%d",&A[i].x);
^
user.cpp:27:22: error: ‘class std::vector<per>’ has no member named ‘y’
scanf("%d",&A[i].y);
^
user.cpp:29:17: error: ‘class std::vector<per>’ has no member named ‘y’
e.node=A[i].y;e.dir=1;
^
user.cpp:30:12: error: ‘class std::vector<per>’ has no member named ‘x’
G[A[i].x].push_back(e);
^
user.cpp:32:17: error: ‘class std::vector<per>’ has no member named ‘x’
e.node=A[i].x;e.dir=-1;
^
user.cpp:33:12: error: ‘class std::vector<per>’ has no member named ‘y’
G[A[i].y].push_back(e);
^
user.cpp:19:7: warning: unused variable ‘x’ [-Wunused-variable]
int i,x;
^
user.cpp: In function ‘void Dfs(int)’:
user.cpp:41:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<G[x].size();++i)
^
user.cpp: In function ‘void NrComponents()’:
user.cpp:56:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0;j<G[last].size();++j)
^
user.cpp: In function ‘void Read()’:
user.cpp:21:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("biperm.in","r",stdin);
^
user.cpp:22:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp: In function ‘void Write()’:
user.cpp:70:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("biperm.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !