Borderou de evaluare (job #2963272)

Utilizator andreea_chivuAndreea Chivu andreea_chivu Data 10 ianuarie 2023 18:15:30
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int functie()': main.cpp:27:22: error: 'i' was not declared in this scope 27 | parametrii[i++] = v[functia[p] - 'a']; | ^ main.cpp:29:22: error: 'i' was not declared in this scope 29 | parametrii[i++] = functia[p] - '0'; | ^ main.cpp:32:22: error: 'i' was not declared in this scope 32 | parametrii[i++] = functie(); | ^ main.cpp:22:8: warning: unused variable 'litera' [-Wunused-variable] 22 | char litera = functia[p]; | ^~~~~~ main.cpp:37:7: warning: unused variable 'idx' [-Wunused-variable] 37 | int idx = 0; | ^~~ main.cpp:38:1: warning: no return statement in function returning non-void [-Wreturn-type] 38 | } | ^ main.cpp: In function 'int expresie()': main.cpp:41:15: error: 'termen' was not declared in this scope 41 | int sum = termen(); | ^~~~~~ main.cpp:42:13: error: 'litera' was not declared in this scope 42 | while(f[litera - 'A'][idx] == '+' || f[litera - 'A'][idx] == '-'){ | ^~~~~~ main.cpp:43:12: error: 's' was not declared in this scope 43 | if(s[litera - 'A'][idx] == '+'){ | ^ main.cpp: In function 'int termen()': main.cpp:55:14: error: 'factor' was not declared in this scope 55 | int prod = factor(); | ^~~~~~ main.cpp:56:11: error: 'litera' was not declared in this scope 56 | while(f[litera - 'A'][idx] == '*'){ | ^~~~~~ main.cpp: In function 'int factor()': main.cpp:65:8: error: 'litera' was not declared in this scope 65 | if(f[litera - 'A'][idx] == '('){ | ^~~~~~ main.cpp:71:15: error: 'litera' was not declared in this scope 71 | if('a' <= f[litera - 'A'][idx] && f[litera - 'A'][idx] <= 'z'){ | ^~~~~~ main.cpp:73:3: error: expected primary-expression before '}' token 73 | } | ^ main.cpp:64:7: warning: control reaches end of non-void function [-Wreturn-type] 64 | int val = 0; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?