Borderou de evaluare (job #1634005)
Utilizator | Data | 6 martie 2016 13:08:45 | |
---|---|---|---|
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 max_sum_subarray(int*, int)’:
user.cpp:11:15: error: ‘INT_MIN’ was not declared in this scope
int sum = INT_MIN;
^
user.cpp: In function ‘int max_sum_submatrix(int, int)’:
user.cpp:26:18: error: ‘INT_MIN’ was not declared in this scope
int maxsum = INT_MIN;
^
user.cpp: In function ‘int main()’:
user.cpp:42:15: warning: unused variable ‘s’ [-Wunused-variable]
long long s;
^
user.cpp:44:42: 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:45:44: 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:47:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&M);
^
user.cpp:52:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&A[i]);
^
user.cpp:55:30: 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 !