Borderou de evaluare (job #1751015)
Utilizator | Data | 31 august 2016 16:17:23 | |
---|---|---|---|
Problema | Sum2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:10: error: ‘maxn’ was not declared in this scope
int nums[maxn], n, l, u;
^
user.cpp: In function ‘int main()’:
user.cpp:18:16: error: ‘nums’ was not declared in this scope
scanf("%d", &nums[i]);
^
user.cpp:19:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (D.size() >= l && nums[i] >= nums[D.front()]) {
^
user.cpp:32:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (D.size() >= l && D.size() <= u && sum > sol)
^
user.cpp:32:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (D.size() >= l && D.size() <= u && sum > sol)
^
user.cpp:12:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sum2.in", "r", stdin);
^
user.cpp:13:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sum2.out", "w", stdout);
^
user.cpp:15:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &l, &u);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !