Borderou de evaluare (job #646190)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Talent (clasa a 6-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 1 apr. 2022 22:33:52 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:1: error: 'ifstream' does not name a type
2 | ifstream f("talent.in");
| ^~~~~~~~
main.cpp:3:1: error: 'ofstream' does not name a type
3 | ofstream g("talent.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:18:9: error: 'f' was not declared in this scope
18 | f >> n;
| ^
main.cpp:24:59: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
24 | if (!vip || maxd < d || maxd == d && x < vip)vip = x, maxd = d;
| ~~~~~~~~~~^~~~~~~~~~
main.cpp:27:9: error: 'g' was not declared in this scope
27 | g << p << ' ' << vip << '\n';
| ^