#3925
rest1
Se dau numerele naturale n
, c
și r
. Să se determine numărul minim m
, strict mai mare decât n
, care dă restul r
prin împărțire la c
.
Problema | rest1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54192750 | Utilizator | |
Fișier | rest1.cpp | Dimensiune | 231 B |
Data încărcării | 21 Noiembrie 2024, 18:55 | Scor / rezultat | Eroare de compilare |
rest1.cpp:3:6: error: stray '#' in program using#include <iostream> ^ rest1.cpp:3:7: error: expected nested-name-specifier before 'include' using#include <iostream> ^ rest1.cpp:3:7: error: 'include' has not been declared rest1.cpp:3:15: error: expected ';' before '<' token using#include <iostream> ^ rest1.cpp:3:15: error: expected unqualified-id before '<' token rest1.cpp: In function 'int main()': rest1.cpp:9:5: error: 'cin' was not declared in this scope cin>>n>>c>>r; ^ rest1.cpp:9:5: note: suggested alternative: In file included from rest1.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ rest1.cpp:12:5: error: 'cout' was not declared in this scope cout << m + r; ^ rest1.cpp:12:5: note: suggested alternative: In file included from rest1.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ rest1.cpp:14:5: error: 'cout' was not declared in this scope cout << m+c+r; ^ rest1.cpp:14:5: note: suggested alternative: In file included from rest1.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema rest1 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ă.