Borderou de evaluare (job #1985788)
Utilizator | Data | 28 mai 2017 11:06:36 | |
---|---|---|---|
Problema | Mobs | Status | done |
Runda | ACM ICPC Faza Nationala 2017 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:40: error: ‘INT_MAX’ was not declared in this scope
int t, a, b, n, ans = 0, h, mina = INT_MAX - 1, minb = INT_MAX;
^
user.cpp:28:21: error: ‘minb’ was not declared in this scope
minb = mina, mina = h;
^
user.cpp:29:29: error: ‘minb’ was not declared in this scope
else if(h < minb)
^
user.cpp:38:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i < A.size() && j < B.size()) {
^
user.cpp:38:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i < A.size() && j < B.size()) {
^
user.cpp:43:78: error: ‘minb’ was not declared in this scope
if((A.size() - i) > 0 && (A.size() - i) % 2 == 0 && mina == a + b && minb == b * 2)
^
user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mobs.in", "rt", stdin);
^
user.cpp:11:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mobs.out", "wt", stdout);
^
user.cpp:17:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &a, &b);
^
user.cpp:24:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &h);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !