Borderou de evaluare (job #2360770)

Utilizator q1e123Solca Robert-Nicolae q1e123 Data 2 martie 2019 09:59:05
Problema Cifre4 Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:20:16: error: the value of 'p' is not usable in a constant expression bitset<p>viz; ^ main.cpp:14:15: note: 'int p' is not const int r,p,maxi; ^ main.cpp:20:17: error: the value of 'p' is not usable in a constant expression bitset<p>viz; ^ main.cpp:14:15: note: 'int p' is not const int r,p,maxi; ^ main.cpp:20:17: note: in template argument for type 'long unsigned int' bitset<p>viz; ^ main.cpp:33:28: error: invalid types 'int[long int]' for array subscript if(viz[rest] = 0){ ^ main.cpp:35:29: error: invalid types 'int[long int]' for array subscript viz[rest] = true; ^ main.cpp:7:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cifre4.in","r",stdin); ^ main.cpp:8:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cifre4.out","w",stdout); ^ main.cpp:12:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ main.cpp:18:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&r,&p); ^ Non zero exit status: 1

Ceva nu functioneaza?