Borderou de evaluare (job #2043563)

Utilizator eduard2000Cosma Eduard eduard2000 Data 20 octombrie 2017 10:51:47
Problema Inel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:11: error: expected initializer before ‘a’ int v[30] a[30]; ^ user.cpp: In function ‘void backtrack(int)’: user.cpp:9:10: error: ‘n’ was not declared in this scope if(b>n) ^ user.cpp:11:12: error: ‘v’ was not declared in this scope if(v[n]+1==2 or v[n]+1== 3 or v[n]+1== 5 or v[n]+1== 7 or v[n]+1== 11 or v[n]+1 == 13 or v[n]+1 == 17 or v[n]+1 == 19 or v[n]+1 ==23 or v[n]+1== 29 or v[n]+1 == 31) ^ user.cpp:12:13: error: ‘k’ was not declared in this scope k++; ^ user.cpp:16:8: error: ‘v’ was not declared in this scope if(v[p-1] % 2 == 0 ) ^ user.cpp:16:10: error: ‘p’ was not declared in this scope if(v[p-1] % 2 == 0 ) ^ user.cpp:18:13: error: ‘i’ was not declared in this scope for(i=3;i<=n ;i+=2) ^ user.cpp:18:20: error: ‘n’ was not declared in this scope for(i=3;i<=n ;i+=2) ^ user.cpp:19:18: error: ‘a’ was not declared in this scope if(a[i]== 0) ^ user.cpp:25:13: error: expected ‘;’ before ‘a’ a[i]=0; ^ user.cpp:29:12: error: ‘i’ was not declared in this scope for(i=2;i<=n ;i+=2) ^ user.cpp:29:19: error: ‘n’ was not declared in this scope for(i=2;i<=n ;i+=2) ^ user.cpp:30:18: error: ‘a’ was not declared in this scope if(a[i]== 0) ^ user.cpp:36:13: error: expected ‘;’ before ‘a’ a[i]=0; ^ user.cpp: In function ‘int main()’: user.cpp:45:1: error: ‘f’ was not declared in this scope f>>n; ^ user.cpp:45:4: error: ‘n’ was not declared in this scope f>>n; ^

Ceva nu functioneaza?