#9
maxmin
Să se scrie un program care citeşte de la tastatură trei numere naturale și determină diferenţa dintre cel mai mare şi cel mai mic.
Problema | maxmin | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16233548 | Utilizator | |
Fișier | maxmin.cpp | Dimensiune | 498 B |
Data încărcării | 22 Iunie 2019, 12:09 | Scor / rezultat | Eroare de compilare |
maxmin.cpp:7:2: error: stray '\302' in program int a,b,c; ^ maxmin.cpp:7:2: error: stray '\240' in program maxmin.cpp:7:2: error: stray '\302' in program maxmin.cpp:7:2: error: stray '\240' in program maxmin.cpp:9:2: error: stray '\302' in program cin>>a; ^ maxmin.cpp:9:2: error: stray '\240' in program maxmin.cpp:9:2: error: stray '\302' in program maxmin.cpp:9:2: error: stray '\240' in program maxmin.cpp:11:2: error: stray '\302' in program cin>>b; ^ maxmin.cpp:11:2: error: stray '\240' in program maxmin.cpp:11:2: error: stray '\302' in program maxmin.cpp:11:2: error: stray '\240' in program maxmin.cpp:13:2: error: stray '\302' in program cin>>c; ^ maxmin.cpp:13:2: error: stray '\240' in program maxmin.cpp:13:2: error: stray '\302' in program maxmin.cpp:13:2: error: stray '\240' in program maxmin.cpp:15:2: error: stray '\302' in program if(a>b) ^ maxmin.cpp:15:2: error: stray '\240' in program maxmin.cpp:15:2: error: stray '\302' in program maxmin.cpp:15:2: error: stray '\240' in program maxmin.cpp:17:2: error: stray '\302' in program { ^ maxmin.cpp:17:2: error: stray '\240' in program maxmin.cpp:17:2: error: stray '\302' in program maxmin.cpp:17:2: error: stray '\240' in program maxmin.cpp:19:2: error: stray '\302' in program int aux=a; ^ maxmin.cpp:19:2: error: stray '\240' in program maxmin.cpp:19:2: error: stray '\302' in program maxmin.cpp:19:2: error: stray '\240' in program maxmin.cpp:19:2: error: stray '\302' in program maxmin.cpp:19:2: error: stray '\240' in program maxmin.cpp:19:2: error: stray '\302' in program maxmin.cpp:19:2: error: stray '\240' in program maxmin.cpp:21:2: error: stray '\302' in program a=b; ^ maxmin.cpp:21:2: error: stray '\240' in program maxmin.cpp:21:2: error: stray '\302' in program maxmin.cpp:21:2: error: stray '\240' in program maxmin.cpp:21:2: error: stray '\302' in program maxmin.cpp:21:2: error: stray '\240' in program maxmin.cpp:21:2: error: stray '\302' in program maxmin.cpp:21:2: error: stray '\240' in program maxmin.cpp:23:2: error: stray '\302' in program b=aux; ^ maxmin.cpp:23:2: error: stray '\240' in program maxmin.cpp:23:2: error: stray '\302' in program maxmin.cpp:23:2: error: stray '\240' in program maxmin.cpp:23:2: error: stray '\302' in program maxmin.cpp:23:2: error: stray '\240' in program maxmin.cpp:23:2: error: stray '\302' in program maxmin.cpp:23:2: error: stray '\240' in program maxmin.cpp:25:2: error: stray '\302' in program } ^ maxmin.cpp:25:2: error: stray '\240' in program maxmin.cpp:25:2: error: stray '\302' in program maxmin.cpp:25:2: error: stray '\240' in program maxmin.cpp:27:2: error: stray '\302' in program if(b>c) ^ maxmin.cpp:27:2: error: stray '\240' in program maxmin.cpp:27:2: error: stray '\302' in program maxmin.cpp:27:2: error: stray '\240' in program maxmin.cpp:29:2: error: stray '\302' in program { ^ maxmin.cpp:29:2: error: stray '\240' in program maxmin.cpp:29:2: error: stray '\302' in program maxmin.cpp:29:2: error: stray '\240' in program maxmin.cpp:31:2: error: stray '\302' in program int aux=b; ^ maxmin.cpp:31:2: error: stray '\240' in program maxmin.cpp:31:2: error: stray '\302' in program maxmin.cpp:31:2: error: stray '\240' in program maxmin.cpp:31:2: error: stray '\302' in program maxmin.cpp:31:2: error: stray '\240' in program maxmin.cpp:31:2: error: stray '\302' in program maxmin.cpp:31:2: error: stray '\240' in program maxmin.cpp:33:2: error: stray '\302' in program b=c; ^ maxmin.cpp:33:2: error: stray '\240' in program maxmin.cpp:33:2: error: stray '\302' in program maxmin.cpp:33:2: error: stray '\240' in program maxmin.cpp:33:2: error: stray '\302' in program maxmin.cpp:33:2: error: stray '\240' in program maxmin.cpp:33:2: error: stray '\302' in program maxmin.cpp:33:2: error: stray '\240' in program maxmin.cpp:35:2: error: stray '\302' in program c=aux; ^ maxmin.cpp:35:2: error: stray '\240' in program maxmin.cpp:35:2: error: stray '\302' in program maxmin.cpp:35:2: error: stray '\240' in program maxmin.cpp:35:2: error: stray '\302' in program maxmin.cpp:35:2: error: stray '\240' in program maxmin.cpp:35:2: error: stray '\302' in program maxmin.cpp:35:2: error: stray '\240' in program maxmin.cpp:37:2: error: stray '\302' in program } ^ maxmin.cpp:37:2: error: stray '\240' in program maxmin.cpp:37:2: error: stray '\302' in program maxmin.cpp:37:2: error: stray '\240' in program maxmin.cpp:39:2: error: stray '\302' in program if(a>b) ^ maxmin.cpp:39:2: error: stray '\240' in program maxmin.cpp:39:2: error: stray '\302' in program maxmin.cpp:39:2: error: stray '\240' in program maxmin.cpp:41:2: error: stray '\302' in program { ^ maxmin.cpp:41:2: error: stray '\240' in program maxmin.cpp:41:2: error: stray '\302' in program maxmin.cpp:41:2: error: stray '\240' in program maxmin.cpp:43:2: error: stray '\302' in program int aux=a; ^ maxmin.cpp:43:2: error: stray '\240' in program maxmin.cpp:43:2: error: stray '\302' in program maxmin.cpp:43:2: error: stray '\240' in program maxmin.cpp:43:2: error: stray '\302' in program maxmin.cpp:43:2: error: stray '\240' in program maxmin.cpp:43:2: error: stray '\302' in program maxmin.cpp:43:2: error: stray '\240' in program maxmin.cpp:45:2: error: stray '\302' in program a=b; ^ maxmin.cpp:45:2: error: stray '\240' in program maxmin.cpp:45:2: error: stray '\302' in program maxmin.cpp:45:2: error: stray '\240' in program maxmin.cpp:45:2: error: stray '\302' in program maxmin.cpp:45:2: error: stray '\240' in program maxmin.cpp:45:2: error: stray '\302' in program maxmin.cpp:45:2: error: stray '\240' in program maxmin.cpp:47:2: error: stray '\302' in program b=aux; ^ maxmin.cpp:47:2: error: stray '\240' in program maxmin.cpp:47:2: error: stray '\302' in program maxmin.cpp:47:2: error: stray '\240' in program maxmin.cpp:47:2: error: stray '\302' in program maxmin.cpp:47:2: error: stray '\240' in program maxmin.cpp:47:2: error: stray '\302' in program maxmin.cpp:47:2: error: stray '\240' in program maxmin.cpp:49:2: error: stray '\302' in program } ^ maxmin.cpp:49:2: error: stray '\240' in program maxmin.cpp:49:2: error: stray '\302' in program maxmin.cpp:49:2: error: stray '\240' in program maxmin.cpp:51:2: error: stray '\302' in program cout<<c-a; ^ maxmin.cpp:51:2: error: stray '\240' in program maxmin.cpp:51:2: error: stray '\302' in program maxmin.cpp:51:2: error: stray '\240' in program maxmin.cpp:53:2: error: stray '\302' in program return 0 ; ^ maxmin.cpp:53:2: error: stray '\240' in program maxmin.cpp:53:2: error: stray '\302' in program maxmin.cpp:53:2: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema maxmin 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ă.