Borderou de evaluare (job #1285906)
Utilizator | Data | 7 decembrie 2014 11:47:32 | |
---|---|---|---|
Problema | Disconnect | Status | done |
Runda | Algoritmiada 2015 - Runda 1, Seniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void ReadTree()’:
user.cpp:24:19: error: ‘rand’ was not declared in this scope
i = k - (rand() % 8);
^
user.cpp: In function ‘void BFS()’:
user.cpp:47:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (k = 0; k < vec[i].size(); k++) {
^
user.cpp: In function ‘void DFS(int)’:
user.cpp:92:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (z = 0; z < child[x].size(); z++) {
^
user.cpp: In function ‘void ProcessOperations()’:
user.cpp:134:19: error: ‘rand’ was not declared in this scope
t = 1 + (rand() % 5);
^
user.cpp:139:20: error: ‘rand’ was not declared in this scope
a = 1 + (rand() % N);
^
user.cpp:145:19: error: ‘rand’ was not declared in this scope
a = 1 + (rand() % N);
^
user.cpp: In function ‘int main()’:
user.cpp:175:14: error: ‘srand’ was not declared in this scope
srand(12345);
^
user.cpp: In function ‘void ReadTree()’:
user.cpp:27:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
} else scanf("%d %d", &i, &j);
^
user.cpp: In function ‘void ProcessOperations()’:
user.cpp:149:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &t, &x, &y);
^
user.cpp: In function ‘int main()’:
user.cpp:170:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("disconnect.in", "r", stdin);
^
user.cpp:171:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("disconnect.out", "w", stdout);
^
user.cpp:176:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
} else scanf("%d %d", &N, &M);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !