Borderou de evaluare (job #1649770)
Utilizator | Data | 11 martie 2016 15:01:39 | |
---|---|---|---|
Problema | Ratina | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:13: error: ISO C++ forbids declaration of ‘inf’ with no type [-fpermissive]
#define INF ((1 << ) - 1)
^
user.cpp:11:11: note: in expansion of macro ‘INF’
const inf INF ((1 << 31) - 1);
^
user.cpp:8:20: error: expected primary-expression before ‘)’ token
#define INF ((1 << ) - 1)
^
user.cpp:11:11: note: in expansion of macro ‘INF’
const inf INF ((1 << 31) - 1);
^
user.cpp:11:15: error: expected ‘,’ or ‘;’ before ‘(’ token
const inf INF ((1 << 31) - 1);
^
user.cpp: In function ‘int main()’:
user.cpp:8:20: error: expected primary-expression before ‘)’ token
#define INF ((1 << ) - 1)
^
user.cpp:74:29: note: in expansion of macro ‘INF’
start = minim = INF;
^
user.cpp:8:20: error: expected primary-expression before ‘)’ token
#define INF ((1 << ) - 1)
^
user.cpp:75:23: note: in expansion of macro ‘INF’
finish = -INF;
^
user.cpp:39:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ratina.in","r",stdin);
^
user.cpp:40:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ratina.out","w",stdout);
^
user.cpp:42:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n", &N, &M);
^
user.cpp:45:44: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(S), v[i].x = S, v[i].y = i;
^
user.cpp:72:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &nr);
^
user.cpp:79:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &X);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !