Borderou de evaluare (job #1077609)
Utilizator | Data | 11 ianuarie 2014 15:11:57 | |
---|---|---|---|
Problema | Regine | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int get_rez(int, int)’:
user.cpp:9:11: error: ‘n’ was not declared in this scope
if (((n - l + 1 + 1) / 2) < c) return -1;
^
user.cpp:11:41: error: ‘n’ was not declared in this scope
return c + std::max (0, std::min ( (n - c + 1) / 2, l - 1));
^
user.cpp: In function ‘int main()’:
user.cpp:15:12: error: ‘n’ was not declared in this scope
fin >> n;
^
user.cpp: In function ‘int get_rez(int, int)’:
user.cpp:12:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !