Borderou de evaluare (job #3208444)

Utilizator Luca_georgescuLucageorgescu Luca_georgescu Data 28 februarie 2024 17:25:45
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: expected ',' or ';' before 'ofstream' 6 | ofstream g("evaluare.out") | ^~~~~~~~ main.cpp: In function 'int eval()': main.cpp:16:14: error: 'p' was not declared in this scope 16 | while ( *p=='+' || *p=='-' ) | ^ main.cpp: In function 'int termen()': main.cpp:35:13: error: 'p' was not declared in this scope 35 | while( *p=='*' || *p=='/' ) | ^ main.cpp: In function 'int factor()': main.cpp:54:11: error: 'p' was not declared in this scope 54 | if ( *p=='(' ) | ^ main.cpp: In function 'int main()': main.cpp:73:15: error: 's' was not declared in this scope 73 | f.getline(s,1000005); | ^ main.cpp:74:5: error: 'p' was not declared in this scope 74 | p=s; | ^ main.cpp:75:5: error: 'g' was not declared in this scope 75 | g << eval(); | ^ Non zero exit status: 1

Ceva nu functioneaza?