Borderou de evaluare (job #2090204)

Utilizator PredaBossPreda Andrei PredaBoss Data 17 decembrie 2017 19:07:40
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:6: error: ISO C++ forbids declaration of ‘eval’ with no type [-fpermissive] eval() ^ user.cpp: In function ‘int eval()’: user.cpp:21:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<a.size() && a[i]!=')'){ ^ user.cpp: At global scope: user.cpp:39:12: error: ISO C++ forbids declaration of ‘prelucrare’ with no type [-fpermissive] prelucrare() ^ user.cpp: In function ‘int prelucrare()’: user.cpp:43:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<a.size() && a[i]!='+' && a[i]!='-' && a[i]!=')'){ ^ user.cpp: At global scope: user.cpp:55:8: error: ISO C++ forbids declaration of ‘factor’ with no type [-fpermissive] factor() ^ user.cpp: In function ‘int factor()’: user.cpp:63:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<a.size() && a[i]-'0'<10 && a[i]-'0'>=0){ ^

Ceva nu functioneaza?