Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146127 罗钰帆 06买鸡腿 C++ Compile Error 0 MS 0 KB 588 2026-01-26 19:02:01

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ inta, b; cin>> a >> b; int groups = b / (3 * a); int free_chicken = groups; int total_paid = 3 * a * groups; // int remaining_money = b - total_paid; // int additional_chicken = remaining_money / a; int total = 4 * groups + additional_chicken; // cout << total << endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:4: error: 'inta' was not declared in this scope
    inta, b;
    ^
Main.cc:8:10: error: 'b' was not declared in this scope
    inta, b;
          ^
Main.cc:9:11: error: 'a' was not declared in this scope
     cin>> a >> b;
           ^
Main.cc:11:9: warning: unused variable 'free_chicken' [-Wunused-variable]
     int free_chicken = groups; 
         ^