Borderou de evaluare (job #2256461)

Utilizator stefanjumarea02jumarea stefan stefanjumarea02 Data 8 octombrie 2018 17:53:27
Problema Expresie2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:18:1: error: expected initializer before ‘int’ int main() ^~~ user.cpp: In function ‘long long int eval1()’: user.cpp:39:17: error: incompatible types in assignment of ‘int’ to ‘char [1000001]’ s += v[i]; ^ user.cpp:40:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (s - summin > summax) ^~~~~~ user.cpp:41:24: error: invalid conversion from ‘char*’ to ‘int’ [-fpermissive] summax = s - summin; ~~^~~~~~~~ user.cpp:42:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (s < summin) ^~~~~~ user.cpp:43:22: error: invalid conversion from ‘char*’ to ‘int’ [-fpermissive] summin = s; ^ user.cpp:36:9: warning: unused variable ‘sum’ [-Wunused-variable] int sum = 0, summax = v[1], summin = 0; ^~~ user.cpp: In function ‘long long int eval()’: user.cpp:66:26: error: ‘factor’ was not declared in this scope long long r = factor(); ^ user.cpp: In function ‘long long int fact()’: user.cpp:104:9: error: ‘x’ was not declared in this scope x = -1;} ^ user.cpp:106:9: error: ‘x’ was not declared in this scope x = 1; ^ user.cpp:114:12: error: ‘x’ was not declared in this scope return x * r; ^

Ceva nu functioneaza?