Borderou de evaluare (job #794415)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Scara | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 nov. 2024 10:43:44 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:22:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
22 | cin>>n>>k;
| ^~~
| std::cin
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:146,
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:23:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
23 | cout<<combo(n,k);
| ^~~~
| 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
| ^~~~
main.cpp:23:15: error: 'combo' was not declared in this scope
23 | cout<<combo(n,k);
| ^~~~~