Borderou de evaluare (job #3182172)

Utilizator Le0nard27Anton Leonard Gabriel Le0nard27 Data 8 decembrie 2023 18:29:51
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: 'ifstream' does not name a type 5 | ifstream fin("evaluare.in"); | ^~~~~~~~ main.cpp:6:1: error: 'ofstream' does not name a type 6 | ofstream fout("evaluare.out"); | ^~~~~~~~ main.cpp: In function 'int num(int, int)': main.cpp:32:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 32 | for(int i=st; i<=dr; i++) | ^~~ main.cpp:34:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 34 | return numar; | ^~~~~~ main.cpp: In function 'int solve(int, int)': main.cpp:60:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 60 | if(s[st]=='(' && s[dr]==')') | ^~ main.cpp:63:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 63 | return num(st,dr); | ^~~~~~ main.cpp: In function 'int main()': main.cpp:70:5: error: 'fin' was not declared in this scope 70 | fin.getline(s,10005); | ^~~ main.cpp:72:5: error: 'fout' was not declared in this scope 72 | fout<<solve(0,n-1); | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?