#3430
bpj2020
Gigel a descoperit noul joc Block Puzzle Jewel. Jocul constă în plasarea pe tabla de joc a unor piese de diverse tipuri și obținerea unui anumit scor. Dându-se o secvență de piese care se plasează pe tablă, determinați scorul final al lui Gigel.
idee proprie
Problema | bpj2020 | Operații I/O |
bpj2020.in /bpj2020.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54024678 | Utilizator | |
Fișier | bpj2020.cpp | Dimensiune | 2.53 KB |
Data încărcării | 18 Noiembrie 2024, 10:25 | Scor / rezultat | Eroare de compilare |
bpj2020.cpp: In function 'int main()': bpj2020.cpp:26:9: error: expected ';' before '}' token } ^ bpj2020.cpp:31:21: error: 'k' was not declared in this scope for(k=0; j<=2; j++) ^ bpj2020.cpp:53:27: error: expected ';' before numeric constant v[l+1][0]+=3, v[l]0]++, v[0][c-1]++, v[0][c]+=2, v[0][c+1]++; ^ bpj2020.cpp:53:26: warning: right operand of comma operator has no effect [-Wunused-value] v[l+1][0]+=3, v[l]0]++, v[0][c-1]++, v[0][c]+=2, v[0][c+1]++; ^ bpj2020.cpp:55:5: error: 'else' without a previous 'if' else if(a==13) ^ bpj2020.cpp:59:32: error: expected ';' before numeric constant v[0][c]+=2, v[0][c+1]++2, v[l][0]++, v[l+1][0]+=2, v[l+2][0]++; ^ bpj2020.cpp:79:40: error: 'cnt' was not declared in this scope for(j=1; j<=8; j++) if(v[j][0]==8) cnt++; ^ bpj2020.cpp:80:40: error: 'cnt' was not declared in this scope for(j=1; j<=8; j++) if(v[0][j]==8) cnt++; ^ bpj2020.cpp:82:13: error: 'k' was not declared in this scope for(k=1; k<=0; k++) v[j][k]=0; ^ bpj2020.cpp:84:13: error: 'k' was not declared in this scope for(k=1; k<=0; k++) v[k][j]=0; ^ bpj2020.cpp:85:16: error: 'cnt' was not declared in this scope switch(cnt) ^ bpj2020.cpp:87:31: error: expected primary-expression before 'break' case 1: scor+=10, break; ^ bpj2020.cpp:87:31: error: expected ';' before 'break' bpj2020.cpp:88:31: error: expected primary-expression before 'break' case 2: scor+=30, break; ^ bpj2020.cpp:88:31: error: expected ';' before 'break' bpj2020.cpp:89:31: error: expected primary-expression before 'break' case 3: scor+=60, break; ^ bpj2020.cpp:89:31: error: expected ';' before 'break' bpj2020.cpp:90:32: error: expected primary-expression before 'break' case 4: scor+=100, break; ^ bpj2020.cpp:90:32: error: expected ';' before 'break' bpj2020.cpp:91:32: error: expected primary-expression before 'break' case 5: scor+=150, break; ^ bpj2020.cpp:91:32: error: expected ';' before 'break' bpj2020.cpp:92:32: error: expected primary-expression before 'break' case 6: scor+=500, break; ^ bpj2020.cpp:92:32: error: expected ';' before 'break'
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema bpj2020 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.