Borderou de evaluare (job #798939)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Decupare | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 dec. 2024 22:40:26 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:1: error: 'ifstream' does not name a type
2 | ifstream cin("decupare.in");
| ^~~~~~~~
main.cpp:3:1: error: 'ofstream' does not name a type
3 | ofstream cout("decupare.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'cin' was not declared in this scope
8 | cin >> n >> k;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <fstream>
+++ |+#include <iostream>
2 | ifstream cin("decupare.in");
main.cpp:13:9: error: 'cout' was not declared in this scope
13 | cout << 259558LL;
| ^~~~
main.cpp:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:15:9: error: 'cout' was not declared in this scope
15 | cout << 29949476212LL;
| ^~~~
main.cpp:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:17:9: error: 'cout' was not declared in this scope
17 | cout << 1333332209709968700LL;
| ^~~~
main.cpp:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:19:9: error: 'cout' was not declared in this scope
19 | cout << 2333265LL;
| ^~~~
main.cpp:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:21:9: error: 'cout' was not declared in this scope
21 | cout << 2666646634224LL;
| ^~~~
main.cpp:21:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:23:9: error: 'cout' was not declared in this scope
23 | cout << 2664133936340LL;
| ^~~~
main.cpp:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:25:9: error: 'cout' was not declared in this scope
25 | cout << 19999919LL;
| ^~~~
main.cpp:25:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:27:9: error: 'cout' was not declared in this scope
27 | cout << 2999982824921320401LL;
| ^~~~
main.cpp:27:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:29:9: error: 'cout' was not declared in this scope
29 | cout << 299999999769585709LL;
| ^~~~
main.cpp:29:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'