Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132418 姚清元 A+B 输入输出练习I C++ Compile Error 0 MS 0 KB 123 2025-10-08 09:56:37

Tests(0/0):


Code:

#include <stdio.h> int main() { int A,S while (cin>>A>>S){ cout << A+S<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:5: error: expected initializer before 'while'
     while (cin>>A>>S){
     ^
Main.cc:4:9: warning: unused variable 'A' [-Wunused-variable]
     int A,S
         ^