Borderou de evaluare (job #2485298)

Utilizator abcdefghijabcdefghij abcdefghij abcdefghij Data 1 noiembrie 2019 11:36:50
Problema Concurs2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:1: error: declaration does not declare anything [-fpermissive] int ; ^~~ main.cpp: In function 'int main()': main.cpp:13:5: error: 'cin' was not declared in this scope cin>>n; ^~~ main.cpp:14:5: error: 'p' was not declared in this scope p=0; ^ main.cpp:15:5: error: 'u' was not declared in this scope u=0; ^ main.cpp:18:14: error: 's' was not declared in this scope cin>>s; ^ main.cpp:19:26: error: 'strcmp' was not declared in this scope if(strcmp(s,"pop")==0){p++;} ^ main.cpp:20:28: error: 'strcmp' was not declared in this scope if(strcmp(s,"front")==0){cout<<c[p];} ^ main.cpp:20:34: error: 'cout' was not declared in this scope if(strcmp(s,"front")==0){cout<<c[p];} ^~~~ main.cpp:20:40: error: 'c' was not declared in this scope if(strcmp(s,"front")==0){cout<<c[p];} ^ main.cpp:21:27: error: 'strcmp' was not declared in this scope if(strcmp(s,"push")==0){cin>>x; ^ main.cpp:21:38: error: 'x' was not declared in this scope if(strcmp(s,"push")==0){cin>>x; ^ main.cpp:22:45: error: expected ')' before '{' token if(p>u||p==x{p=1;u=1;c[1]=x}} ^ main.cpp:22:61: error: expected primary-expression before '}' token if(p>u||p==x{p=1;u=1;c[1]=x}} ^ main.cpp:23:42: error: 'c' was not declared in this scope else{u++;c[u]=x;} ^ main.cpp:23:47: error: 'x' was not declared in this scope else{u++;c[u]=x;} ^ main.cpp:12:11: warning: unused variable 'm' [-Wunused-variable] int n,m,i,j,ok,k,nr; ^ main.cpp:12:15: warning: unused variable 'j' [-Wunused-variable] Non zero exit status: 1

Ceva nu functioneaza?