Borderou de evaluare (job #851078)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Evalpostfix (clasa a 10-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 2 feb. 2026 17:49:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:19:9: error: conflicting declaration 'int n'
19 | int n=0, v[150001]={0},t=0,a,b,k,i;
| ^
main.cpp:18:33: note: previous declaration as 'char n'
18 | char s[150001],*p,sep[]=" ",n=0;
| ^
main.cpp:27:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(i=0; i<strlen(p); i++)
| ~^~~~~~~~~~
main.cpp:41:27: warning: unused variable 's' [-Wunused-variable]
41 | char *s=p;
| ^