Borderou de evaluare (job #2694320)

Utilizator andrei_ciobanuciobanu andrei andrei_ciobanu Data 8 ianuarie 2021 19:23:26
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:15:19: error: 'INT_MIN' was not declared in this scope int maxSubSum=INT_MIN, maxSubSumI=-1, start=1, left=1, right=1; ^~~~~~~ main.cpp:18:13: error: 'maxSubSumI' was not declared in this scope if (maxSubSumI<0){ ^~~~~~~~~~ main.cpp:19:13: error: 'start' was not declared in this scope start=i; ^~~~~ main.cpp:24:9: error: 'maxSubSumI' was not declared in this scope maxSubSumI+=x; ^~~~~~~~~~ main.cpp:26:18: error: 'start' was not declared in this scope left=start; ^~~~~ main.cpp:27:19: error: assignment of function 'std::ios_base& std::right(std::ios_base&)' right=i; ^ main.cpp:27:19: error: cannot convert 'int' to 'std::ios_base&(std::ios_base&)' in assignment main.cpp:34:53: warning: format '%d' expects argument of type 'int', but argument 4 has type 'std::ios_base& (*)(std::ios_base&)' [-Wformat=] fprintf(fout, "%d %d %d", maxSubSum, left, right); ^ main.cpp:34:53: warning: format '%d' expects argument of type 'int', but argument 5 has type 'std::ios_base& (*)(std::ios_base&)' [-Wformat=] main.cpp:13:26: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &n); ^ main.cpp:23:30: 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?