Borderou de evaluare (job #783174)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Zmax (baraj gimnaziu) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 31 iul. 2024 12:17:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:13: error: variable 'std::ifstream cin' has initializer but incomplete type
9 | ifstream cin("zmax.in");
| ^
main.cpp:10:14: error: variable 'std::ofstream cout' has initializer but incomplete type
10 | ofstream cout("zmax.out");
| ^
main.cpp: In function 'int main()':
main.cpp:32:34: error: reference to 'cin' is ambiguous
32 | ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
| ^~~
In file included from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:62:18: note: candidates are: 'std::istream std::cin'
62 | extern istream cin; ///< Linked to standard input
| ^~~
main.cpp:9:10: note: '<typeprefixerror>cin'
9 | ifstream cin("zmax.in");
| ^~~
main.cpp:32:46: error: reference to 'cout' is ambiguous
32 | ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
| ^~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:63:18: note: candidates are: 'std::ostream std::cout'
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
main.cpp:10:10: note: '<typeprefixerror>cout'
10 | ofstream cout("zmax.out");
| ^~~~
main.cpp:34:5: error: reference to 'cin' is ambiguous
34 | cin>>n>>m;
| ^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:62:18: note: candidates are: 'std::istream std::cin'
62 | extern istream cin; ///< Linked to standard input
| ^~~
main.cpp:9:10: note: '<typeprefixerror>cin'
9 | ifstream cin("zmax.in");
| ^~~
main.cpp:38:13: error: reference to 'cin' is ambiguous
38 | cin>>a[i][j], st[i][j] = st[i][j - 1] + a[i][j];
| ^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:62:18: note: candidates are: 'std::istream std::cin'
62 | extern istream cin; ///< Linked to standard input
| ^~~
main.cpp:9:10: note: '<typeprefixerror>cin'
9 | ifstream cin("zmax.in");
| ^~~
main.cpp:61:5: error: reference to 'cout' is ambiguous
61 | cout<<ans;
| ^~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:63:18: note: candidates are: 'std::ostream std::cout'
63 | extern ostream cout; ///< Linked to standard output
| ^~~~