Borderou de evaluare (job #3005522)

Utilizator 1gbr1Gabara 1gbr1 Data 17 martie 2023 08:19:53
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:19: warning: missing terminating " character 10 | ofstream fout("ssm.out); | ^ main.cpp:10:19: error: missing terminating " character 10 | ofstream fout("ssm.out); | ^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:11:10: error: expected ')' before ';' token 11 | int n; | ^ | ) main.cpp:10:18: note: to match this '(' 10 | ofstream fout("ssm.out); | ^ main.cpp:12:12: error: 'n' was not declared in this scope 12 | fin >> n; | ^ main.cpp:28:10: error: invalid operands of types 'std::ofstream(int)' {aka 'std::basic_ofstream<char>(int)'} and 'int' to binary 'operator<<' 28 | fout << smax << " " << st << " " << dr; | ~~~~ ^~ ~~~~ | | | | | int | std::ofstream(int) {aka std::basic_ofstream<char>(int)} Non zero exit status: 1

Ceva nu functioneaza?