Borderou de evaluare (job #627569)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Concurs (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 ian. 2022 16:16:50 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:10: error: expected constructor, destructor, or type conversion before '(' token
3 | ifstream (concurs.in)
| ^
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
10 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
main.cpp:9:17: warning: unused variable 'H' [-Wunused-variable]
9 | int a,b,c,x,H,n;
| ^
main.cpp:9:19: warning: unused variable 'n' [-Wunused-variable]
9 | int a,b,c,x,H,n;
| ^