fork download
  1. #include <iostream>
  2. #include <string.h>
  3.  
  4. using namespace std;
  5.  
  6. #define U "Fabiana"
  7. #define S "123456"
  8. int main() {
  9.  
  10. char usuario[50], senha[50];
  11.  
  12. cin >> usuario;
  13. cin >> senha;
  14.  
  15. if ( strcmp(usuario, U) == 0 && strcmp (senha, S) == 0){
  16. cout << "Pode entrar!";
  17. }
  18. else {
  19. cout << "Nao pode entrar!";
  20.  
  21. }
  22. return 0;
  23. }
Success #stdin #stdout 0s 4676KB
stdin
Fabiana
123456
stdout
Pode entrar!