Borderou de evaluare (job #728263)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Chibrituri (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 aug. 2023 10:12:53 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:14: error: variable 'std::ifstream cin' has initializer but incomplete type
4 | ifstream cin ("chibrituri.in");
| ^
main.cpp:5:15: error: variable 'std::ofstream cout' has initializer but incomplete type
5 | ofstream cout ("chibrituri.out");
| ^
main.cpp: In function 'int main()':
main.cpp:11:5: error: reference to 'cin' is ambiguous
11 | cin>>vb>>ob;
| ^~~
In file included from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/iostream:60:18: note: candidates are: 'std::istream std::cin'
60 | extern istream cin; /// Linked to standard input
| ^~~
main.cpp:4:10: note: '<typeprefixerror>cin'
4 | ifstream cin ("chibrituri.in");
| ^~~
main.cpp:20:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
20 | if(i>19)
| ^~
main.cpp:22:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
22 | c2=i%10;
| ^~
main.cpp:42:5: error: reference to 'cout' is ambiguous
42 | cout<<cnt<<endl;
| ^~~~
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/iostream:61:18: note: candidates are: 'std::ostream std::cout'
61 | extern ostream cout; /// Linked to standard output
| ^~~~
main.cpp:5:10: note: '<typeprefixerror>cout'
5 | ofstream cout ("chibrituri.out");
| ^~~~
main.cpp:44:9: error: reference to 'cout' is ambiguous
44 | cout<<"0";
| ^~~~
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/iostream:61:18: note: candidates are: 'std::ostream std::cout'
61 | extern ostream cout; /// Linked to standard output
| ^~~~
main.cpp:5:10: note: '<typeprefixerror>cout'
5 | ofstream cout ("chibrituri.out");
| ^~~~
main.cpp:45:5: error: reference to 'cout' is ambiguous
45 | cout<<pn<<":";
| ^~~~
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/iostream:61:18: note: candidates are: 'std::ostream std::cout'
61 | extern ostream cout; /// Linked to standard output
| ^~~~
main.cpp:5:10: note: '<typeprefixerror>cout'
5 | ofstream cout ("chibrituri.out");
| ^~~~