Borderou de evaluare (job #1788977)
Utilizator | Tarnu Cristian Huskyez | Data | 26 octombrie 2016 16:56:45 |
---|---|---|---|
Problema | Cartite | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:39:26: error: size of array ‘graph’ is too large
bool graph[200005][200005];
^
user.cpp: In function ‘void add_nodes(int, int, int, int)’:
user.cpp:106:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<nodes.size(); j++){
^
user.cpp:124:5: error: ‘graph’ was not declared in this scope
graph[nod][vecin] = graph[vecin][nod] = true;
^
user.cpp: In function ‘void DFS(int, int, std::vector<int>&)’:
user.cpp:132:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1; i<=nodes.size(); i++)
^
user.cpp:133:12: error: ‘graph’ was not declared in this scope
if(graph[node][i])
^
user.cpp:138:5: error: ‘graph’ was not declared in this scope
graph[node][i] = graph[i][node] = false;
^
user.cpp: In function ‘void concat(std::vector<int>&, int)’:
user.cpp:151:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<b.size(); i++){
^
user.cpp:154:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=pos+1; i<x.size(); i++){
^
user.cpp: In function ‘int main()’:
user.cpp:196:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i<=nodes.size(); i++){
^
user.cpp:201:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<ciclu.size(); j++){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !