Borderou de evaluare (job #1633819)
Utilizator | Data | 6 martie 2016 12:52:37 | |
---|---|---|---|
Problema | MaxSubSum | Status | done |
Runda | ONIS 2016, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long int findMaxSum(long int*, long int*)’:
user.cpp:63:28: warning: variable ‘finalLeft’ set but not used [-Wunused-but-set-variable]
long maxSum = INT_MIN, finalLeft, finalRight, finalTop, finalBottom;
^
user.cpp:63:39: warning: variable ‘finalRight’ set but not used [-Wunused-but-set-variable]
long maxSum = INT_MIN, finalLeft, finalRight, finalTop, finalBottom;
^
user.cpp:63:51: warning: variable ‘finalTop’ set but not used [-Wunused-but-set-variable]
long maxSum = INT_MIN, finalLeft, finalRight, finalTop, finalBottom;
^
user.cpp:63:61: warning: variable ‘finalBottom’ set but not used [-Wunused-but-set-variable]
long maxSum = INT_MIN, finalLeft, finalRight, finalTop, finalBottom;
^
user.cpp: In function ‘int main()’:
user.cpp:110:2: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
return;
^
user.cpp:114:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fileIn, "%ld%ld", &ROW, &COL);
^
user.cpp:116:61: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (long i = 0; i < ROW; i++) fscanf(fileIn, "%ld", &A[i]);
^
user.cpp:117:61: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (long i = 0; i < COL; i++) fscanf(fileIn, "%ld", &B[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !