C/C++ Koddaki hata nedir?

Gayet iyi calisiyor kod.
Ekran Resmi 2024-01-15 22.06.37.png


Hata veriyor zaten otomatik.
Ekran Resmi 2024-01-15 22.07.37.png
 
C++:
#include <iostream>
using namespace std;

int main() {
    int kurulnotu;        
    int anatomipratik ;
    int histopratik ;
    int pdonotu ;
    int netnot;

    cout << "Kurul notunuzu giriniz:\n";
    cin >> kurulnotu;
    cout << "Anatomi pratik notu (100 üzerinden):\n";
    cin >> anatomipratik;
    cout << "Histo pratik notu (100 üzerinden):\n";
    cin >> histopratik;
    cout << "PDO notu:\n";
    cin >> pdonotu;

    netnot = (kurulnotu * 81 / 100 + anatomipratik * 15 / 100 + histopratik * 4 / 100) * 85 / 100 + pdonotu * 15 / 100;

    cout << "Toplam komite notunuz: " << netnot << endl;

    if (netnot > 90)        
        cout << "Yuh" << endl;
    else if (netnot > 80)
        cout << "Saygılar Hocam" << endl;
    else if (netnot > 78)
        cout << "İyisin" << endl;
    else if (netnot > 62)
        cout << "wp" << endl;
    else if (netnot >= 60)
        cout << "Ucundan" << endl;
    else
        cout << "Tekrar deneyiniz xd" << endl;

    return 0;
}
Hocam bu bende sorunsuz çalıştı.
 
Gayet iyi calisiyor kod.
Eki Görüntüle 2085651

Hata veriyor zaten otomatik.
Eki Görüntüle 2085658

Hocam sen expected yazmışsın, o nedir?

C++:
#include <iostream>
using namespace std;

int main() {
 int kurulnotu;
 int anatomipratik ;
 int histopratik ;
 int pdonotu ;
 int netnot;

 cout << "Kurul notunuzu giriniz:\n";
 cin >> kurulnotu;
 cout << "Anatomi pratik notu (100 üzerinden):\n";
 cin >> anatomipratik;
 cout << "Histo pratik notu (100 üzerinden):\n";
 cin >> histopratik;
 cout << "PDO notu:\n";
 cin >> pdonotu;

 netnot = (kurulnotu * 81 / 100 + anatomipratik * 15 / 100 + histopratik * 4 / 100) * 85 / 100 + pdonotu * 15 / 100;

 cout << "Toplam komite notunuz: " << netnot << endl;

 if (netnot > 90)
 cout << "Yuh" << endl;
 else if (netnot > 80)
 cout << "Saygılar Hocam" << endl;
 else if (netnot > 78)
 cout << "İyisin" << endl;
 else if (netnot > 62)
 cout << "wp" << endl;
 else if (netnot >= 60)
 cout << "Ucundan" << endl;
 else
 cout << "Tekrar deneyiniz xd" << endl;

 return 0;
}
Hocam bu bende sorunsuz çalıştı.

İf kısmındaki cout da çıktı mı, problem orası çıkmıyor?
 

Geri
Yukarı