#1871
UbuPH
Într-o zi telefonul lui Max s-a stricat.Văzând o reclamă la noul telefon cu sistemul de operare Ubuntu, s-a gândit să achiziționeze și el unul.
Drumul de la casa lui la magazin poate fi reprezentat ca o matrice cu n
linii și m
coloane. În fiecare element al matricei este o barieră; pentru a trece de bariere trebuie plătită o sumă de bani, care nu este aceeași pentru fiecare barieră și poate fi chiar 0
.
Casa lui se află pe coordonatele (ic,jc)
, iar magazinul la coordonatele (im,jm)
.
Pentru că trebuie să cumpere telefonul, este nevoie ca drumul lui sa fie cât mai puțin costisitor, plătind la bariere o sumă totală minimă.
Problema | UbuPH | Operații I/O |
ubuph.in /ubuph.out
|
---|---|---|---|
Limita timp | 1.3 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #8970145 | Utilizator | |
Fișier | ubuph.cpp | Dimensiune | 1.35 KB |
Data încărcării | 22 Martie 2018, 20:27 | Scor / rezultat | Eroare de compilare |
ubuph.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ ubuph.cpp:2:9: error: #include expects "FILENAME" or <FILENAME> #include <queue> ^ ubuph.cpp:3:8: error: macro names must be identifiers #define INF 1000000000 ^ ubuph.cpp:4:1: error: stray '\302' in program using namespace std; ^ ubuph.cpp:4:1: error: stray '\240' in program ubuph.cpp:4:1: error: stray '\302' in program ubuph.cpp:4:1: error: stray '\240' in program ubuph.cpp:6:1: error: stray '\302' in program int A[1001][1001],B[1001][1001],n,m,im,jm,ic,jc; ^ ubuph.cpp:6:1: error: stray '\240' in program ubuph.cpp:7:1: error: stray '\302' in program const int di[]={1,-1,0,0},dj[]={0,0,1,-1};// Deplasarea spre magazin ^ ubuph.cpp:7:1: error: stray '\240' in program ubuph.cpp:7:1: error: stray '\302' in program ubuph.cpp:7:1: error: stray '\240' in program ubuph.cpp:8:1: error: stray '\302' in program queue<pair<int,int> >Q;// Initializarea cozii ^ ubuph.cpp:8:1: error: stray '\240' in program ubuph.cpp:10:1: error: stray '\302' in program void citire() ^ ubuph.cpp:10:1: error: stray '\240' in program ubuph.cpp:12:1: error: stray '\302' in program ifstream f("ubuph.in"); ^ ubuph.cpp:12:1: error: stray '\240' in program ubuph.cpp:12:1: error: stray '\302' in program ubuph.cpp:12:1: error: stray '\240' in program ubuph.cpp:12:1: error: stray '\302' in program ubuph.cpp:12:1: error: stray '\240' in program ubuph.cpp:12:1: error: stray '\302' in program ubuph.cpp:12:1: error: stray '\240' in program ubuph.cpp:12:1: error: stray '\302' in program ubuph.cpp:12:1: error: stray '\240' in program ubuph.cpp:12:1: error: stray '\302' in program ubuph.cpp:12:1: error: stray '\240' in program ubuph.cpp:13:1: error: stray '\302' in program f>>n>>m; ^ ubuph.cpp:13:1: error: stray '\240' in program ubuph.cpp:13:1: error: stray '\302' in program ubuph.cpp:13:1: error: stray '\240' in program ubuph.cpp:13:1: error: stray '\302' in program ubuph.cpp:13:1: error: stray '\240' in program ubuph.cpp:13:1: error: stray '\302' in program ubuph.cpp:13:1: error: stray '\240' in program ubuph.cpp:14:1: error: stray '\302' in program for(int i=1;i<=n;++i) ^ ubuph.cpp:14:1: error: stray '\240' in program ubuph.cpp:14:1: error: stray '\302' in program ubuph.cpp:14:1: error: stray '\240' in program ubuph.cpp:14:1: error: stray '\302' in program ubuph.cpp:14:1: error: stray '\240' in program ubuph.cpp:14:1: error: stray '\302' in program ubuph.cpp:14:1: error: stray '\240' in program ubuph.cpp:14:1: error: stray '\302' in program ubuph.cpp:14:1: error: stray '\240' in program ubuph.cpp:15:1: error: stray '\302' in program for(int j=1;j<=m;++j) ^ ubuph.cpp:15:1: error: stray '\240' in program ubuph.cpp:15:1: error: stray '\302' in program ubuph.cpp:15:1: error: stray '\240' in program ubuph.cpp:15:1: error: stray '\302' in program ubuph.cpp:15:1: error: stray '\240' in program ubuph.cpp:15:1: error: stray '\302' in program ubuph.cpp:15:1: error: stray '\240' in program ubuph.cpp:15:1: error: stray '\302' in program ubuph.cpp:15:1: error: stray '\240' in program ubuph.cpp:15:1: error: stray '\302' in program ubuph.cpp:15:1: error: stray '\240' in program ubuph.cpp:15:1: error: stray '\302' in program ubuph.cpp:15:1: error: stray '\240' in program ubuph.cpp:15:1: error: stray '\302' in program ubuph.cpp:15:1: error: stray '\240' in program ubuph.cpp:15:1: error: stray '\302' in program ubuph.cpp:15:1: error: stray '\240' in program ubuph.cpp:16:1: error: stray '\302' in program { ^ ubuph.cpp:16:1: error: stray '\240' in program ubuph.cpp:16:1: error: stray '\302' in program ubuph.cpp:16:1: error: stray '\240' in program ubuph.cpp:16:1: error: stray '\302' in program ubuph.cpp:16:1: error: stray '\240' in program ubuph.cpp:16:1: error: stray '\302' in program ubuph.cpp:16:1: error: stray '\240' in program ubuph.cpp:16:1: error: stray '\302' in program ubuph.cpp:16:1: error: stray '\240' in program ubuph.cpp:16:1: error: stray '\302' in program ubuph.cpp:16:1: error: stray '\240' in program ubuph.cpp:16:1: error: stray '\302' in program ubuph.cpp:16:1: error: stray '\240' in program ubuph.cpp:16:1: error: stray '\302' in program ubuph.cpp:16:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program f>>A[i][j]; ^ ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:17:1: error: stray '\302' in program ubuph.cpp:17:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program B[i][j]=INF; ^ ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:18:1: error: stray '\302' in program ubuph.cpp:18:1: error: stray '\240' in program ubuph.cpp:19:1: error: stray '\302' in program } ^ ubuph.cpp:19:1: error: stray '\240' in program ubuph.cpp:19:1: error: stray '\302' in program ubuph.cpp:19:1: error: stray '\240' in program ubuph.cpp:19:1: error: stray '\302' in program ubuph.cpp:19:1: error: stray '\240' in program ubuph.cpp:19:1: error: stray '\302' in program ubuph.cpp:19:1: error: stray '\240' in program ubuph.cpp:19:1: error: stray '\302' in program ubuph.cpp:19:1: error: stray '\240' in program ubuph.cpp:19:1: error: stray '\302' in program ubuph.cpp:19:1: error: stray '\240' in program ubuph.cpp:19:1: error: stray '\302' in program ubuph.cpp:19:1: error: stray '\240' in program ubuph.cpp:19:1: error: stray '\302' in program ubuph.cpp:19:1: error: stray '\240' in program ubuph.cpp:20:1: error: stray '\302' in program f>>im>>jm>>ic>>jc; ^ ubuph.cpp:20:1: error: stray '\240' in program ubuph.cpp:20:1: error: stray '\302' in program ubuph.cpp:20:1: error: stray '\240' in program ubuph.cpp:20:1: error: stray '\302' in program ubuph.cpp:20:1: error: stray '\240' in program ubuph.cpp:20:1: error: stray '\302' in program ubuph.cpp:20:1: error: stray '\240' in program ubuph.cpp:21:1: error: stray '\302' in program f.close(); ^ ubuph.cpp:21:1: error: stray '\240' in program ubuph.cpp:21:1: error: stray '\302' in program ubuph.cpp:21:1: error: stray '\240' in program ubuph.cpp:21:1: error: stray '\302' in program ubuph.cpp:21:1: error: stray '\240' in program ubuph.cpp:21:1: error: stray '\302' in program ubuph.cpp:21:1: error: stray '\240' in program ubuph.cpp:24:1: error: stray '\302' in program bool verif(int i,int j)// Verifica daca pozitia curenta se afla in matrice ^ ubuph.cpp:24:1: error: stray '\240' in program ubuph.cpp:24:1: error: stray '\302' in program ubuph.cpp:24:1: error: stray '\240' in program ubuph.cpp:24:1: error: stray '\302' in program ubuph.cpp:24:1: error: stray '\240' in program ubuph.cpp:26:1: error: stray '\302' in program return 1<=i&&i<=n&&1<=j&&j<=m; ^ ubuph.cpp:26:1: error: stray '\240' in program ubuph.cpp:26:1: error: stray '\302' in program ubuph.cpp:26:1: error: stray '\240' in program ubuph.cpp:26:1: error: stray '\302' in program ubuph.cpp:26:1: error: stray '\240' in program ubuph.cpp:26:1: error: stray '\302' in program ubuph.cpp:26:1: error: stray '\240' in program ubuph.cpp:26:1: error: stray '\302' in program ubuph.cpp:26:1: error: stray '\240' in program ubuph.cpp:29:1: error: stray '\302' in program void Lee() ^ ubuph.cpp:29:1: error: stray '\240' in program ubuph.cpp:30:1: error: stray '\302' in program { B[ic][jc]=A[ic][jc]; ^ ubuph.cpp:30:1: error: stray '\240' in program ubuph.cpp:30:1: error: stray '\302' in program ubuph.cpp:30:1: error: stray '\240' in program ubuph.cpp:30:1: error: stray '\302' in program ubuph.cpp:30:1: error: stray '\240' in program ubuph.cpp:31:1: error: stray '\302' in program while(!Q.empty()) ^ ubuph.cpp:31:1: error: stray '\240' in program ubuph.cpp:31:1: error: stray '\302' in program ubuph.cpp:31:1: error: stray '\240' in program ubuph.cpp:31:1: error: stray '\302' in program ubuph.cpp:31:1: error: stray '\240' in program ubuph.cpp:31:1: error: stray '\302' in program ubuph.cpp:31:1: error: stray '\240' in program ubuph.cpp:32:1: error: stray '\302' in program { ^ ubuph.cpp:32:1: error: stray '\240' in program ubuph.cpp:32:1: error: stray '\302' in program ubuph.cpp:32:1: error: stray '\240' in program ubuph.cpp:32:1: error: stray '\302' in program ubuph.cpp:32:1: error: stray '\240' in program ubuph.cpp:32:1: error: stray '\302' in program ubuph.cpp:32:1: error: stray '\240' in program ubuph.cpp:33:1: error: stray '\302' in program pair<int,int> P=Q.front(); ^ ubuph.cpp:33:1: error: stray '\240' in program ubuph.cpp:33:1: error: stray '\302' in program ubuph.cpp:33:1: error: stray '\240' in program ubuph.cpp:33:1: error: stray '\302' in program ubuph.cpp:33:1: error: stray '\240' in program ubuph.cpp:33:1: error: stray '\302' in program ubuph.cpp:33:1: error: stray '\240' in program ubuph.cpp:33:1: error: stray '\302' in program ubuph.cpp:33:1: error: stray '\240' in program ubuph.cpp:33:1: error: stray '\302' in program ubuph.cpp:33:1: error: stray '\240' in program ubuph.cpp:33:1: error: stray '\302' in program ubuph.cpp:33:1: error: stray '\240' in program ubuph.cpp:33:1: error: stray '\302' in program ubuph.cpp:33:1: error: stray '\240' in program ubuph.cpp:33:1: error: stray '\302' in program ubuph.cpp:33:1: error: stray '\240' in program ubuph.cpp:34:1: error: stray '\302' in program for(int k=0;k<4;++k) ^ ubuph.cpp:34:1: error: stray '\240' in program ubuph.cpp:34:1: error: stray '\302' in program ubuph.cpp:34:1: error: stray '\240' in program ubuph.cpp:34:1: error: stray '\302' in program ubuph.cpp:34:1: error: stray '\240' in program ubuph.cpp:34:1: error: stray '\302' in program ubuph.cpp:34:1: error: stray '\240' in program ubuph.cpp:34:1: error: stray '\302' in program ubuph.cpp:34:1: error: stray '\240' in program ubuph.cpp:34:1: error: stray '\302' in program ubuph.cpp:34:1: error: stray '\240' in program ubuph.cpp:34:1: error: stray '\302' in program ubuph.cpp:34:1: error: stray '\240' in program ubuph.cpp:34:1: error: stray '\302' in program ubuph.cpp:34:1: error: stray '\240' in program ubuph.cpp:34:1: error: stray '\302' in program ubuph.cpp:34:1: error: stray '\240' in program ubuph.cpp:35:1: error: stray '\302' in program { ^ ubuph.cpp:35:1: error: stray '\240' in program ubuph.cpp:35:1: error: stray '\302' in program ubuph.cpp:35:1: error: stray '\240' in program ubuph.cpp:35:1: error: stray '\302' in program ubuph.cpp:35:1: error: stray '\240' in program ubuph.cpp:35:1: error: stray '\302' in program ubuph.cpp:35:1: error: stray '\240' in program ubuph.cpp:35:1: error: stray '\302' in program ubuph.cpp:35:1: error: stray '\240' in program ubuph.cpp:35:1: error: stray '\302' in program ubuph.cpp:35:1: error: stray '\240' in program ubuph.cpp:35:1: error: stray '\302' in program ubuph.cpp:35:1: error: stray '\240' in program ubuph.cpp:35:1: error: stray '\302' in program ubuph.cpp:35:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program int i=P.first+di[k],j=P.second+dj[k]; ^ ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:36:1: error: stray '\302' in program ubuph.cpp:36:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program if(verif(i,j)&&B[i][j]>B[P.first][P.second]+A[i][j]) ^ ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:37:1: error: stray '\302' in program ubuph.cpp:37:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program B[i][j]=B[P.first][P.second]+A[i][j],Q.push(make_pair(i,j)); ^ ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:38:1: error: stray '\302' in program ubuph.cpp:38:1: error: stray '\240' in program ubuph.cpp:39:1: error: stray '\302' in program } ^ ubuph.cpp:39:1: error: stray '\240' in program ubuph.cpp:39:1: error: stray '\302' in program ubuph.cpp:39:1: error: stray '\240' in program ubuph.cpp:39:1: error: stray '\302' in program ubuph.cpp:39:1: error: stray '\240' in program ubuph.cpp:39:1: error: stray '\302' in program ubuph.cpp:39:1: error: stray '\240' in program ubuph.cpp:39:1: error: stray '\302' in program ubuph.cpp:39:1: error: stray '\240' in program ubuph.cpp:39:1: error: stray '\302' in program ubuph.cpp:39:1: error: stray '\240' in program ubuph.cpp:39:1: error: stray '\302' in program ubuph.cpp:39:1: error: stray '\240' in program ubuph.cpp:39:1: error: stray '\302' in program ubuph.cpp:39:1: error: stray '\240' in program ubuph.cpp:40:1: error: stray '\302' in program Q.pop(); ^ ubuph.cpp:40:1: error: stray '\240' in program ubuph.cpp:40:1: error: stray '\302' in program ubuph.cpp:40:1: error: stray '\240' in program ubuph.cpp:40:1: error: stray '\302' in program ubuph.cpp:40:1: error: stray '\240' in program ubuph.cpp:40:1: error: stray '\302' in program ubuph.cpp:40:1: error: stray '\240' in program ubuph.cpp:40:1: error: stray '\302' in program ubuph.cpp:40:1: error: stray '\240' in program ubuph.cpp:40:1: error: stray '\302' in program ubuph.cpp:40:1: error: stray '\240' in program ubuph.cpp:40:1: error: stray '\302' in program ubuph.cpp:40:1: error: stray '\240' in program ubuph.cpp:40:1: error: stray '\302' in program ubuph.cpp:40:1: error: stray '\240' in program ubuph.cpp:41:1: error: stray '\302' in program } ^ ubuph.cpp:41:1: error: stray '\240' in program ubuph.cpp:41:1: error: stray '\302' in program ubuph.cpp:41:1: error: stray '\240' in program ubuph.cpp:41:1: error: stray '\302' in program ubuph.cpp:41:1: error: stray '\240' in program ubuph.cpp:41:1: error: stray '\302' in program ubuph.cpp:41:1: error: stray '\240' in program ubuph.cpp:44:1: error: stray '\302' in program int main() ^ ubuph.cpp:44:1: error: stray '\240' in program ubuph.cpp:46:1: error: stray '\302' in program citire(); ^ ubuph.cpp:46:1: error: stray '\240' in program ubuph.cpp:46:1: error: stray '\302' in program ubuph.cpp:46:1: error: stray '\240' in program ubuph.cpp:46:1: error: stray '\302' in program ubuph.cpp:46:1: error: stray '\240' in program ubuph.cpp:46:1: error: stray '\302' in program ubuph.cpp:46:1: error: stray '\240' in program ubuph.cpp:47:1: error: stray '\302' in program Q.push(make_pair(ic,jc)); ^ ubuph.cpp:47:1: error: stray '\240' in program ubuph.cpp:47:1: error: stray '\302' in program ubuph.cpp:47:1: error: stray '\240' in program ubuph.cpp:47:1: error: stray '\302' in program ubuph.cpp:47:1: error: stray '\240' in program ubuph.cpp:47:1: error: stray '\302' in program ubuph.cpp:47:1: error: stray '\240' in program ubuph.cpp:48:1: error: stray '\302' in program Lee(); ^ ubuph.cpp:48:1: error: stray '\240' in program ubuph.cpp:48:1: error: stray '\302' in program ubuph.cpp:48:1: error: stray '\240' in program ubuph.cpp:48:1: error: stray '\302' in program ubuph.cpp:48:1: error: stray '\240' in program ubuph.cpp:48:1: error: stray '\302' in program ubuph.cpp:48:1: error: stray '\240' in program ubuph.cpp:49:1: error: stray '\302' in program ofstream g("ubuph.out"); ^ ubuph.cpp:49:1: error: stray '\240' in program ubuph.cpp:49:1: error: stray '\302' in program ubuph.cpp:49:1: error: stray '\240' in program ubuph.cpp:49:1: error: stray '\302' in program ubuph.cpp:49:1: error: stray '\240' in program ubuph.cpp:49:1: error: stray '\302' in program ubuph.cpp:49:1: error: stray '\240' in program ubuph.cpp:49:1: error: stray '\302' in program ubuph.cpp:49:1: error: stray '\240' in program ubuph.cpp:50:1: error: stray '\302' in program g<<B[im][jm]; ^ ubuph.cpp:50:1: error: stray '\240' in program ubuph.cpp:50:1: error: stray '\302' in program ubuph.cpp:50:1: error: stray '\240' in program ubuph.cpp:50:1: error: stray '\302' in program ubuph.cpp:50:1: error: stray '\240' in program ubuph.cpp:50:1: error: stray '\302' in program ubuph.cpp:50:1: error: stray '\240' in program ubuph.cpp:51:1: error: stray '\302' in program g.close(); ^ ubuph.cpp:51:1: error: stray '\240' in program ubuph.cpp:51:1: error: stray '\302' in program ubuph.cpp:51:1: error: stray '\240' in program ubuph.cpp:51:1: error: stray '\302' in program ubuph.cpp:51:1: error: stray '\240' in program ubuph.cpp:51:1: error: stray '\302' in program ubuph.cpp:51:1: error: stray '\240' in program ubuph.cpp:52:1: error: stray '\302' in program return 0; ^ ubuph.cpp:52:1: error: stray '\240' in program ubuph.cpp:52:1: error: stray '\302' in program ubuph.cpp:52:1: error: stray '\240' in program ubuph.cpp:52:1: error: stray '\302' in program ubuph.cpp:52:1: error: stray '\240' in program ubuph.cpp:52:1: error: stray '\302' in program ubuph.cpp:52:1: error: stray '\240' in program ubuph.cpp:52:1: error: stray '\302' in program ubuph.cpp:52:1: error: stray '\240' in program ubuph.cpp:8:1: error: 'queue' does not name a type queue<pair<int,int> >Q;// Initializarea cozii ^ ubuph.cpp: In function 'void citire()': ubuph.cpp:12:9: error: 'ifstream' was not declared in this scope ifstream f("ubuph.in"); ^ ubuph.cpp:12:21: error: expected ';' before 'f' ifstream f("ubuph.in"); ^ ubuph.cpp:13:9: error: 'f' was not declared in this scope f>>n>>m; ^ ubuph.cpp:18:33: error: 'INF' was not declared in this scope B[i][j]=INF; ^ ubuph.cpp: In function 'void Lee()': ubuph.cpp:31:16: error: 'Q' was not declared in this scope while(!Q.empty()) ^ ubuph.cpp:33:17: error: 'pair' was not declared in this scope pair<int,int> P=Q.front(); ^ ubuph.cpp:33:22: error: expected primary-expression before 'int' pair<int,int> P=Q.front(); ^ ubuph.cpp:33:22: error: expected ';' before 'int' ubuph.cpp:36:32: error: 'P' was not declared in this scope int i=P.first+di[k],j=P.second+dj[k]; ^ ubuph.cpp:37:36: error: 'j' was not declared in this scope if(verif(i,j)&&B[i][j]>B[P.first][P.second]+A[i][j]) ^ ubuph.cpp:38:90: error: 'make_pair' was not declared in this scope B[i][j]=B[P.first][P.second]+A[i][j],Q.push(make_pair(i,j)); ^ ubuph.cpp: In function 'int main()': ubuph.cpp:47:9: error: 'Q' was not declared in this scope Q.push(make_pair(ic,jc)); ^ ubuph.cpp:47:31: error: 'make_pair' was not declared in this scope Q.push(make_pair(ic,jc)); ^ ubuph.cpp:49:9: error: 'ofstream' was not declared in this scope ofstream g("ubuph.out"); ^ ubuph.cpp:49:19: error: expected ';' before 'g' ofstream g("ubuph.out"); ^ ubuph.cpp:50:9: error: 'g' was not declared in this scope g<<B[im][jm]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema UbuPH 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ă.