Problema | Ab3 | Operații I/O |
ab3.in /ab3.out
|
---|---|---|---|
Limita timp | 0.14 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #51604755 | Utilizator | |
Fișier | ab3.cpp | Dimensiune | 754 B |
Data încărcării | 19 Iulie 2024, 16:14 | Scor / rezultat | Eroare de compilare |
ab3.cpp: In function 'int main()': ab3.cpp:17:5: error: reference to 'cin' is ambiguous cin >> n; ^ ab3.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin ("ab3.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from ab3.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ ab3.cpp:18:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1 ; i <= n ; i++) ^ ab3.cpp:20:9: error: reference to 'cin' is ambiguous cin >> x; ^ ab3.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin ("ab3.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from ab3.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ ab3.cpp:21:9: error: reference to 'cout' is ambiguous cout << cautare(x , 1 , 1000000000) << '\n'; ^ ab3.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout ("ab3.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from ab3.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ ab3.cpp: In function 'long long unsigned int cautare(long long unsigned int, long long unsigned int, long long unsigned int)': ab3.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Ab3 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.