Borderou de evaluare (job #2958129)

Utilizator ingrid2328Nagy Ingrid ingrid2328 Data 24 decembrie 2022 19:40:00
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:1: error: 'ofstrea' does not name a type 7 | ofstrea fout("ssm.out"); | ^~~~~~~ main.cpp: In function 'int main()': main.cpp:11:24: error: expected initializer before ']' token 11 | int n, i, v[6000001]], best[6000001]], bestsum, r1=1, r2=0; | ^ main.cpp:13:30: error: 'v' was not declared in this scope 13 | for (i=1; i<=n; i++) cin>>v[i]; | ^ main.cpp:14:4: error: 'best' was not declared in this scope 14 | best[0]=0; | ^~~~ main.cpp:15:4: error: 'bestsum' was not declared in this scope 15 | bestsum=v[1]; | ^~~~~~~ main.cpp:15:12: error: 'v' was not declared in this scope 15 | bestsum=v[1]; | ^ main.cpp:20:13: error: 'r1' was not declared in this scope 20 | else r1++; | ^~ main.cpp:24:12: error: 'r2' was not declared in this scope 24 | r2=i; | ^~ main.cpp:27:4: error: 'cout' was not declared in this scope 27 | cout<<bestsum<<" "<<r1<<" "<<r2; | ^~~~ main.cpp:3:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 2 | #include <fstream> +++ |+#include <iostream> 3 | main.cpp:27:24: error: 'r1' was not declared in this scope 27 | cout<<bestsum<<" "<<r1<<" "<<r2; | ^~ main.cpp:27:33: error: 'r2' was not declared in this scope 27 | cout<<bestsum<<" "<<r1<<" "<<r2; | ^~ Non zero exit status: 1

Ceva nu functioneaza?