Borderou de evaluare (job #1322434)

Utilizator leontinLeontin leontin Data 20 ianuarie 2015 00:59:05
Problema G2mm Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul II Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:21: error: conflicting declaration ‘std::vector<int> g [30003]’ vector< int >g[30003],g2[30003]; ^ user.cpp:5:10: error: ‘g’ has a previous declaration as ‘FILE* g’ FILE *f,*g; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:13:40: error: ‘FILE’ has no member named ‘begin’ for(vector<int>::iterator i=g[nod].begin();i!=g[nod].end();++i) ^ user.cpp:13:58: error: ‘FILE’ has no member named ‘end’ for(vector<int>::iterator i=g[nod].begin();i!=g[nod].end();++i) ^ user.cpp: In function ‘int main()’: user.cpp:39:14: error: ‘FILE’ has no member named ‘push_back’ g[x].push_back(y); ^ user.cpp:40:14: error: ‘FILE’ has no member named ‘push_back’ g[y].push_back(x); ^ user.cpp:44:5: error: ‘fo’ was not declared in this scope fo<<"1\n"; ^ user.cpp:45:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<sol.size();++j) ^ user.cpp:36:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&N,&M); ^ user.cpp:38:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&x,&y); ^

Ceva nu functioneaza?