#3495
FourSquare
Codificati un mesaj folosind cifrul Four Square.
cifrul Four Square
Problema | FourSquare | Operații I/O |
foursquare.in /foursquare.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49757070 | Utilizator | |
Fișier | foursquare.cpp | Dimensiune | 1.05 KB |
Data încărcării | 14 Martie 2024, 08:50 | Scor / rezultat | Eroare de compilare |
foursquare.cpp:6:15: warning: missing terminating " character [enabled by default] ofstream fout("foursquare.out); ^ foursquare.cpp:6:1: error: missing terminating " character ofstream fout("foursquare.out); ^ foursquare.cpp:7:14: error: 'b' has not been declared char a[5][5],b[5][5],c[5][5],d[5][5],s[10000]; ^ foursquare.cpp:7:22: error: 'c' has not been declared char a[5][5],b[5][5],c[5][5],d[5][5],s[10000]; ^ foursquare.cpp:7:30: error: 'd' has not been declared char a[5][5],b[5][5],c[5][5],d[5][5],s[10000]; ^ foursquare.cpp:7:38: error: 's' has not been declared char a[5][5],b[5][5],c[5][5],d[5][5],s[10000]; ^ foursquare.cpp:7:46: error: expected ')' before ';' token char a[5][5],b[5][5],c[5][5],d[5][5],s[10000]; ^ foursquare.cpp: In function 'int main()': foursquare.cpp:14:19: error: 'a' was not declared in this scope fin>>a[i][j]; ^ foursquare.cpp:17:19: error: 'b' was not declared in this scope fin>>b[i][j]; ^ foursquare.cpp:20:19: error: 'c' was not declared in this scope fin>>c[i][j]; ^ foursquare.cpp:23:19: error: 'd' was not declared in this scope fin>>d[i][j]; ^ foursquare.cpp:24:11: error: 's' was not declared in this scope fin>>s; ^ foursquare.cpp:30:22: error: 'a' was not declared in this scope if(a[k][j]==s[i]) ^ foursquare.cpp:38:19: error: 'd' was not declared in this scope if(d[k][j]==s[i+1]) ^ foursquare.cpp:44:23: error: 'b' was not declared in this scope fout<<b[ma1][mi2]<<c[ma2][mi1]; ^ foursquare.cpp:44:36: error: 'c' was not declared in this scope fout<<b[ma1][mi2]<<c[ma2][mi1]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FourSquare 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ă.