Borderou de evaluare (job #1634033)
Utilizator | Data | 6 martie 2016 13:12:08 | |
---|---|---|---|
Problema | MaxSubSum | Status | done |
Runda | ONIS 2016, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int kadane(int*, int*, int*, int)’:
user.cpp:24:27: error: ‘INT_MIN’ was not declared in this scope
int sum = 0, maxSum = INT_MIN, i;
^
user.cpp:32:10: error: ‘i’ was not declared in this scope
for (i = 0; i < n; ++i)
^
user.cpp:57:10: error: ‘i’ was not declared in this scope
for (i = 1; i < n; i++)
^
user.cpp: In function ‘int findMaxSum(int (*)[2005])’:
user.cpp:71:18: error: ‘INT_MIN’ was not declared in this scope
int maxSum = INT_MIN, finalLeft, finalRight, finalTop, finalBottom;
^
user.cpp:80:37: error: ‘memset’ was not declared in this scope
memset(temp, 0, sizeof(temp));
^
user.cpp:100:17: error: ‘finalLeft’ was not declared in this scope
finalLeft = left;
^
user.cpp:101:17: error: ‘finalRight’ was not declared in this scope
finalRight = right;
^
user.cpp:102:17: error: ‘finalTop’ was not declared in this scope
finalTop = start;
^
user.cpp:103:17: error: ‘finalBottom’ was not declared in this scope
finalBottom = finish;
^
user.cpp: In function ‘int main()’:
user.cpp:149:6: warning: unused variable ‘sum’ [-Wunused-variable]
int sum = 0;
^
user.cpp:126:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maxsubsum.in", "r", stdin);
^
user.cpp:127:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maxsubsum.out", "w", stdout);
^
user.cpp:129:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
^
user.cpp:133:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
user.cpp:138:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !