#1934
Catalin si elfii magici
În regatul lui Cătălin și al lui Sebi există 3 elfi magici, fiecare având vârsta formată dintr-o singură cifră. Fie aceste cifre x
, y
, z
. Ei au aflat că se ține un sfat al bătrânilor în care pot participa doar elfii ale căror vârste sunt numere de 3
cifre. Pentru a fi şi ei prezenţi, cei trei elfi magici își folosesc puterile pentru a-și uni vârstele într-un singur număr de 3
cifre. Transformarea lor este perfectă doar dacă obţin, alăturând vârstele lor, un număr par de 3
cifre.
Să se afișeze câte transformări perfecte pot avea loc, alăturând cele trei vârste și cea mai mare valoare de trei cifre dintre aceste transformări perfecte. Dacă nu pot forma nici un număr par de trei cifre, elfii nu pot participa la sfat și se va afișa mesajul Poate data viitoare!
.
Moisil++, 2016
Problema | Catalin si elfii magici | Operații I/O |
![]() elfii.in /elfii.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 4 MB
/
Stivă 2 MB
|
Id soluție | #16411272 | Utilizator | |
Fișier | catalin_si_elfii_magici.cpp | Dimensiune | 729 B |
Data încărcării | 29 Iulie 2019, 21:59 | Scor / rezultat | Eroare de compilare |
catalin_si_elfii_magici.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ catalin_si_elfii_magici.cpp:3:1: error: stray '\302' in program using namespace std; ^ catalin_si_elfii_magici.cpp:3:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:3:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:3:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:5:1: error: stray '\302' in program ifstream fin("elfii.in"); ^ catalin_si_elfii_magici.cpp:5:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:6:1: error: stray '\302' in program ofstream fout("elfii.out"); ^ catalin_si_elfii_magici.cpp:6:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:8:1: error: stray '\302' in program int main() ^ catalin_si_elfii_magici.cpp:8:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:10:5: error: stray '\302' in program int x,y,z,k,p,Max=-1,n; ^ catalin_si_elfii_magici.cpp:10:5: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program fin >> x >> y >> z; ^ catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:11:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:13:1: error: stray '\302' in program while(p!=6) ^ catalin_si_elfii_magici.cpp:13:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:13:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:13:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:13:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:13:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:13:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:13:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:14:1: error: stray '\302' in program { ^ catalin_si_elfii_magici.cpp:14:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:14:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:14:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:14:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:14:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:14:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:14:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\302' in program k=0; ^ catalin_si_elfii_magici.cpp:15:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:15:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\302' in program k=x*100+y*10+z; ^ catalin_si_elfii_magici.cpp:16:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:16:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\302' in program if(p%2==0) swap(y,z); ^ catalin_si_elfii_magici.cpp:17:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:17:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\302' in program if(p==1) swap(x,z),swap(y,z); ^ catalin_si_elfii_magici.cpp:18:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:18:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\302' in program if(p==3) swap(x,y),swap(y,z); ^ catalin_si_elfii_magici.cpp:19:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:19:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\302' in program p++; ^ catalin_si_elfii_magici.cpp:20:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:20:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program if(k%2==0 and k/100!=0) ^ catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:21:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\302' in program { ^ catalin_si_elfii_magici.cpp:22:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:22:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program if(k>Max) Max=k; ^ catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:23:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program n++; ^ catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:24:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\302' in program } ^ catalin_si_elfii_magici.cpp:25:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:25:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:26:1: error: stray '\302' in program } ^ catalin_si_elfii_magici.cpp:26:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:26:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:26:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:26:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:26:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:26:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:26:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\302' in program if(n==0) fout << "Poate data viitoare!"; ^ catalin_si_elfii_magici.cpp:28:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:28:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program else fout << n << endl << Max; ^ catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:29:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:31:1: error: stray '\302' in program return 0; ^ catalin_si_elfii_magici.cpp:31:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:31:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:31:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:31:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:31:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:31:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:31:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:31:1: error: stray '\302' in program catalin_si_elfii_magici.cpp:31:1: error: stray '\240' in program catalin_si_elfii_magici.cpp:5:1: error: 'ifstream' does not name a type ifstream fin("elfii.in"); ^ catalin_si_elfii_magici.cpp:6:1: error: 'ofstream' does not name a type ofstream fout("elfii.out"); ^ catalin_si_elfii_magici.cpp: In function 'int main()': catalin_si_elfii_magici.cpp:11:9: error: 'fin' was not declared in this scope fin >> x >> y >> z; ^ catalin_si_elfii_magici.cpp:17:37: error: 'swap' was not declared in this scope if(p%2==0) swap(y,z); ^ catalin_si_elfii_magici.cpp:18:35: error: 'swap' was not declared in this scope if(p==1) swap(x,z),swap(y,z); ^ catalin_si_elfii_magici.cpp:19:35: error: 'swap' was not declared in this scope if(p==3) swap(x,y),swap(y,z); ^ catalin_si_elfii_magici.cpp:28:19: error: 'fout' was not declared in this scope if(n==0) fout << "Poate data viitoare!"; ^ catalin_si_elfii_magici.cpp:29:15: error: 'fout' was not declared in this scope else fout << n << endl << Max; ^ catalin_si_elfii_magici.cpp:29:32: error: 'endl' was not declared in this scope else fout << n << endl << Max; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Catalin si elfii magici 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ă.