Borderou de evaluare (job #2056701)
Utilizator | Data | 4 noiembrie 2017 12:52:13 | |
---|---|---|---|
Problema | Oxificare | Status | done |
Runda | Algoritmiada 2017 Runda Finala Seniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:24: error: ISO C++ forbids declaration of ‘Min’ with no type [-fpermissive]
inline Min(int a, int b) {
^
user.cpp:20:24: error: ISO C++ forbids declaration of ‘Max’ with no type [-fpermissive]
inline Max(int a, int b) {
^
user.cpp: In function ‘void Up(int)’:
user.cpp:64:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i <= g[node].size(); i++) {
^
user.cpp: In function ‘int main()’:
user.cpp:88:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("oxificare.in", "r", stdin);
^
user.cpp:89:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("oxificare.out", "w", stdout);
^
user.cpp:91:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &tests);
^
user.cpp:94:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:96:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &dad[i]);
^
user.cpp:100:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &cost[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !