Borderou de evaluare (job #2302295)

Utilizator cyg_vladioanBirsan Vlad cyg_vladioan Data 14 decembrie 2018 08:53:14
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:1: error: expected ']' before numeric constant 005] , ok; ^~~ main.cpp: In function 'void modifica(int, int)': main.cpp:25:9: error: 'fp' was not declared in this scope fp[top1 - 1] = fp[top1 - 1] * fp[top1]; ^~ main.cpp:28:12: error: 'fp' was not declared in this scope if(fp[top1] == 0) ^~ main.cpp:29:13: error: 'ok' was not declared in this scope ok = 0; ^~ main.cpp:35:12: error: 'fp' was not declared in this scope if(fp[top1] == 0) ^~ main.cpp:36:13: error: 'ok' was not declared in this scope ok = 0; ^~ main.cpp:41:9: error: 'fp' was not declared in this scope fp[top1 - 1] = fp[top1 - 1] + fp[top1]; ^~ main.cpp:43:9: error: 'fp' was not declared in this scope fp[top1 - 1] = fp[top1 - 1] - fp[top1]; ^~ main.cpp: In function 'long long int formapoloneza()': main.cpp:49:5: error: 'ok' was not declared in this scope ok = 1; ^~ main.cpp:50:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0 ; i <= s.length() ; i ++) ~~^~~~~~~~~~~~~ main.cpp:54:17: error: 'fp' was not declared in this scope fp[++ top1] = 0; ^~ main.cpp:56:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i < s.length() && isdigit(s[i])) ~~^~~~~~~~~~~~ main.cpp:62:13: error: 'fp' was not declared in this scope fp[++ top1] = nr; ^~ main.cpp:93:12: error: 'fp' was not declared in this scope return fp[1]; ^~ main.cpp: In function 'int main()': main.cpp:104:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n" , formapoloneza()); ^ main.cpp:99:9: warning: unused variable 'i' [-Wunused-variable] int i; Non zero exit status: 1

Ceva nu functioneaza?