Borderou de evaluare (job #2058074)
Utilizator | Data | 5 noiembrie 2017 04:45:08 | |
---|---|---|---|
Problema | Secv8 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::pair<Node*, Node*> split(Node*, int)’:
user.cpp:53:5: error: ‘ans’ was not declared in this scope
ans.first = emptyNode;
^
user.cpp:56:5: error: ‘ans’ was not declared in this scope
ans.second = root;
^
user.cpp:62:5: error: ‘ans’ was not declared in this scope
ans.first = root;
^
user.cpp:68:10: error: ‘ans’ was not declared in this scope
return ans;
^
user.cpp:69:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:100:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv8.in", "r", stdin);
^
user.cpp:101:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv8.out", "w", stdout);
^
user.cpp:105:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d ", &n, &k);
^
user.cpp:110:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &c);
^
user.cpp:113:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d ", &k, &e);
^
user.cpp:117:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d ", &st, &dr);
^
user.cpp:121:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &k);
^
user.cpp:125:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d ", &st, &dr);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !