Borderou de evaluare (job #1805427)
Utilizator | Data | 13 noiembrie 2016 19:41:43 | |
---|---|---|---|
Problema | Zvon | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:1: error: expected initializer before ‘bool’
bool comp(int a, int b){
^
user.cpp: In function ‘int main()’:
user.cpp:37:58: error: ‘comp’ was not declared in this scope
sort(child[node].begin(), child[node].end(), comp);
^
user.cpp:45:29: error: ‘used’ was not declared in this scope
if(node != 1 && used[parent[node]] == false){
^
user.cpp:54:13: error: ‘used’ was not declared in this scope
used[i] = 0;
^
user.cpp:19:20: warning: unused variable ‘j’ [-Wunused-variable]
int T,test,i,n,j,x,y,b,e,mx,node;
^
user.cpp:17:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zvon.in", "r", stdin);
^
user.cpp:18:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zvon.out", "w", stdout);
^
user.cpp:20:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &T);
^
user.cpp:22:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:24:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !