Borderou de evaluare (job #2726725)
Utilizator | Data | 21 martie 2021 11:25:15 | |
---|---|---|---|
Problema | Sume de subsecvențe | Status | done |
Runda | utcn-2021 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:35: error: 'mx' has not been declared
int bun(int s[501], int n, int i, mx)
^~
main.cpp: In function 'int bun(int*, int, int, int)':
main.cpp:8:14: error: 'mx' was not declared in this scope
if(s[1]==mx && s[2]!=1)
^~
main.cpp:10:10: error: 'k' was not declared in this scope
if(i<k)
^
main.cpp: In function 'void maxim(int*, int, int&, int*)':
main.cpp:29:14: warning: statement has no effect [-Wunused-value]
for(k; k<=t; k++)
^
main.cpp: In function 'int main()':
main.cpp:41:15: warning: unused variable 'mx' [-Wunused-variable]
int n, k, mx, v[501], test=0;
^~
main.cpp:45: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:48: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:52: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 !