Borderou de evaluare (job #1946918)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 30 martie 2017 16:32:55
Problema Undo2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:1: error: ‘vector’ does not name a type vector<int> S,V[200005]; ^ user.cpp: In function ‘int main()’: user.cpp:10:21: error: found ‘:’ in nested-name-specifier, expected ‘::’ for(int i=1;i<=N:i++) ^ user.cpp:10:20: error: ‘N’ is not a class, namespace, or enumeration for(int i=1;i<=N:i++) ^ user.cpp:10:25: error: expected ‘;’ before ‘)’ token for(int i=1;i<=N:i++) ^ user.cpp:14:25: error: ‘S’ was not declared in this scope if(op==1){while(S.size()>top){V[S.back].pop_back();S.pop_back();}V[val].push_back(++top);S.push_back(val);} ^ user.cpp:14:39: error: ‘V’ was not declared in this scope if(op==1){while(S.size()>top){V[S.back].pop_back();S.pop_back();}V[val].push_back(++top);S.push_back(val);} ^ user.cpp:14:74: error: ‘V’ was not declared in this scope if(op==1){while(S.size()>top){V[S.back].pop_back();S.pop_back();}V[val].push_back(++top);S.push_back(val);} ^ user.cpp:14:98: error: ‘S’ was not declared in this scope if(op==1){while(S.size()>top){V[S.back].pop_back();S.pop_back();}V[val].push_back(++top);S.push_back(val);} ^ user.cpp:17:43: error: ‘V’ was not declared in this scope else{fprintf(g,"%d\n",lower_bound(V[val].begin(),V[val].end(),top)-V.begin();} ^ user.cpp:17:74: error: ‘lower_bound’ was not declared in this scope else{fprintf(g,"%d\n",lower_bound(V[val].begin(),V[val].end(),top)-V.begin();} ^ user.cpp:9:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&N); ^ user.cpp:13:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&op,&val); ^

Ceva nu functioneaza?