#4327
| Problema | Chimie | Operații I/O |
chimie.in/chimie.out
|
|---|---|---|---|
| Limita timp | 0.08 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64446994 | Utilizator | |
| Fișier | chimie.cpp | Dimensiune | 1.18 KB |
| Data încărcării | 07 Mai 2026, 12:28 | Scor/rezultat | Eroare de compilare |
chimie.cpp: In function ‘int main()’: chimie.cpp:6:24: error: ‘getchar_unlocked’ was not declared in this scope 6 | while (!isdigit(c = getchar_unlocked()) && c != -1); | ^~~~~~~~~~~~~~~~ chimie.cpp:6:12: error: ‘isdigit’ was not declared in this scope 6 | while (!isdigit(c = getchar_unlocked()) && c != -1); | ^~~~~~~ chimie.cpp:12:23: error: ‘getchar_unlocked’ was not declared in this scope 12 | while (isdigit(c = getchar_unlocked())) | ^~~~~~~~~~~~~~~~ chimie.cpp:12:11: error: ‘isdigit’ was not declared in this scope 12 | while (isdigit(c = getchar_unlocked())) | ^~~~~~~ chimie.cpp: At global scope: chimie.cpp:49:5: error: redefinition of ‘int main()’ 49 | int main() | ^~~~ chimie.cpp:3:5: note: ‘int main()’ previously defined here 3 | int main() | ^~~~ chimie.cpp: In function ‘int main()’: chimie.cpp:51:30: error: ‘stdin’ was not declared in this scope 51 | freopen("chimie.in", "r", stdin); | ^~~~~ chimie.cpp:1:1: note: ‘stdin’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | using namespace std; chimie.cpp:51:4: error: ‘freopen’ was not declared in this scope 51 | freopen("chimie.in", "r", stdin); | ^~~~~~~ chimie.cpp:52:31: error: ‘stdout’ was not declared in this scope 52 | freopen("chimie.out", "w", stdout); | ^~~~~~ chimie.cpp:52:31: note: ‘stdout’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? chimie.cpp:53:4: error: ‘cin’ was not declared in this scope 53 | cin.tie(0)->sync_with_stdio(0); | ^~~ chimie.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | using namespace std; chimie.cpp:56:15: error: ‘getInt’ was not declared in this scope 56 | while (x = getInt()) | ^~~~~~ chimie.cpp:63:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 63 | else if (dx == dans) | ^ chimie.cpp:70:4: error: ‘cout’ was not declared in this scope 70 | cout << ans << ' ' << ap; | ^~~~ chimie.cpp:70:4: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Chimie 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ă.