Borderou de evaluare (job #774508)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Minute (clasa a 5-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 15 apr. 2024 13:55:28 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:1: error: '::main' must return 'int'
2 | void main()
| ^~~~
main.cpp: In function 'int main()':
main.cpp:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>h1>>m1>>h2>>m2;
| ^~~
| std::cin
In file included from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
main.cpp:29:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
29 | cout<<h1<<" "<<m1;
| ^~~~
| std::cout
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~