Borderou de evaluare (job #2726893)
Utilizator | Data | 21 martie 2021 12:47:49 | |
---|---|---|---|
Problema | Sume de subsecvențe | Status | done |
Runda | utcn-2021 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int bun(int*, int, int, int, int)':
main.cpp:10:9: error: 'sum' was not declared in this scope
sum+=s[i];
^~~
main.cpp:21:5: error: 'sum' was not declared in this scope
sum = s1;
^~~
main.cpp: In function 'void maxim(int*, int, int&, int*)':
main.cpp:33:14: warning: statement has no effect [-Wunused-value]
for(k; k<=t; k++)
^
main.cpp: In function 'int main()':
main.cpp:45:15: warning: unused variable 'mx' [-Wunused-variable]
int n, k, mx, v[501], test=0;
^~
main.cpp:49:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", &n);
^
main.cpp:52:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", &k);
^
main.cpp:56:40: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d ", &v[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !