Borderou de evaluare (job #1760794)

Utilizator goalexboxerFMI Alexandru Ionascu goalexboxer Data 21 septembrie 2016 11:54:55
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:24:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i < nums.size(); i++) {} ^ user.cpp:25:30: error: ‘i’ was not declared in this scope prev = max(prev + nums[i], nums[i]); ^ user.cpp: At global scope: user.cpp:3:13: error: ‘g’ does not name a type #define out g ^ user.cpp:35:3: note: in expansion of macro ‘out’ out << maxx <<" "<< ++start << " " << ++fin; ^ user.cpp:36:3: error: expected unqualified-id before ‘return’ return 0; ^ user.cpp:39:1: error: expected declaration before ‘}’ token } ^

Ceva nu functioneaza?