Borderou de evaluare (job #2404024)

Utilizator popashtefan10Popa Stefan popashtefan10 Data 12 aprilie 2019 11:04:49
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:10:24: error: 'INT_MIN' was not declared in this scope int n, i, x, maxim = INT_MIN, s = 0, st, dr, stmax, drmax; ^~~~~~~ main.cpp:13:3: error: 'st' was not declared in this scope st = dr = 0; ^~ main.cpp:13:8: error: 'dr' was not declared in this scope st = dr = 0; ^~ main.cpp:16:5: error: 's' was not declared in this scope s += x; ^ main.cpp:20:7: error: 'stmax' was not declared in this scope stmax = st; ^~~~~ main.cpp:21:7: error: 'drmax' was not declared in this scope drmax = dr; ^~~~~ main.cpp:28:7: error: 'stmax' was not declared in this scope stmax = drmax = i; ^~~~~ main.cpp:28:15: error: 'drmax' was not declared in this scope stmax = drmax = i; ^~~~~ main.cpp:36:36: error: 'stmax' was not declared in this scope fprintf(fout, "%d %d %d", maxim, stmax + 1, drmax + 1); ^~~~~ main.cpp:36:47: error: 'drmax' was not declared in this scope fprintf(fout, "%d %d %d", maxim, stmax + 1, drmax + 1); ^~~~~ main.cpp:12:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &n); ^ main.cpp:15:26: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &x); ^ Non zero exit status: 1

Ceva nu functioneaza?